It means to be saved or confined by decision (not necessarily in a barracks). Shelter, take refuge. Stay confined in one place in order to protect yourself.