After creating a gate & applying a lock to the gate the lock can be taken off the wall through the inventory screen without the correct combination.
This also works for barbed wire which can be taken off walls without pliers.
Removing the items via this bug prevents you from reapplying that item type back. For example, if someone removes the lock on my base via inventory I can not then reapply another lock, I have to tear down the old gate & make a new one to "secure" the gate again.