Cleanup gate locking GUI code of rP15375.
Differential Revision: https://code.wildfiregames.com/D1004
Patch By: temple
Remove any unneeded complexity to compute the button states.
The entity state of selected gates was changed, so fix the read-only errors following rP20100, refs #4257.