Shear Flow Stabilization of Z-Pinches