Helicity modulus of the quasi-one-dimensional XY model: Protection by an energy barrier