I don't see a problem if a SO/Hubby/Wife does it on occasions (once or twice a month). I like to hang with my friends, which includes partying, playing spades, or just simply catching up. On those occasions i might be out until 3 or 4am. As long as i keep my hub informed of my whereabouts or timing, it should be cool.
If a person is paying their share for room and board, locking that person out of the house/apt shouldn't even be an option. If you have an issue, confront the person and try to settle it like a mature adult.