sorry to hear about your negative experience.
i have been on both sides, each time, swiftly resolved and no nakedness involved (thankfully).
i hope you are not affected in future by this.
i must have stayed at 300 places and so it's very occasional. i always have the inside lock on - pretty much as soon as i get into the room. mainly prevents over-enthusiastic staff who ignore the 'do not disturb' sign (some do exist). still quite alarming as sometimes people don't knock and enter.