what you tell would is ok, but it would stupid if someone could lock a trader in one town or another...
Also would be interesting for town control. if some buildings could be locked up?
But only if there were restrictions that only chosen doors could be locked and still i can imagine someone being locked in a room for eternity or untill some GM appears