Gravitational instability of finite isothermal spheres in general relativity. Analogy with neutron stars