Stability of fluids with shear-dependent viscosity in the lid-driven cavity