Time dependent forces and stability of equilibrium for holonomic systems