Stable spectrum for pseudo-Riemannian locally symmetric spaces