Effect of stable thermal stratification on shear flow stability