Stability of bounded rapid shear flows of a granular material