The effect of Lagrangian chaos on locking bifurcations in shear flows.