Another trick I have seen is using store items where the bed is, and then place non stackables/movables behind them. Only the house owner can wrap store items and if they cannot be moved (Because sqm behind them are blocked by other items, i.e. coal basins) this will block the entrance without need for any sleeping chars. What world do you play in? I might be able to help you test things this is an interesting topic to me too.