Instability of semi-Riemannian closed geodesics