I just realized that my workaround only prevents going through the door, not other actions requiring touchability. So you still would be able to unlock the door from the next room.
The best solution might be to include Flexible Action Requirements and then rewrite my workaround to block any action that isn’t flexible about touching the noun. Or something like that.