Shear-flow induced stabilization of kinklike modes