There is no "lock door", only "unlock door"?
"Unlock door" is also used for locking a door, but is not described as such
Perhaps the "Unlock door" command should be renamed to something like "Lock/Unlock door"? After not having played the game for a long time, I searched for the command used to simply lock a closed door but couldn't find it. Then I tried Unlock door, and that worked.