Kinetic coupling between protein folding and prolyl isomerization