Rotational stabilization of resistive wall modes by the shear alfven resonance