Shear-induced transition to mean-field critical behavior