Constrained reaction coordinate dynamics for systems with constraints