Yes, I was also considering that. You know what they say: great minds think alike! ;).
There was one other thing though: When a door is locked, you probably want to show something to the user. So I’m thinking about adding another screenplay trigger for when the door is locked, so for example the hero could say “The door seems to be locked, I think I need a key for this”, or something like that.