Shear flow effects on the nonlinear evolution of thermal instabilities