Fixed /toggleownable locking a door when it shouldn't.

Mentioned in #1515
Might explain #1510
and #1506, sorry about that one