Implemented instant locking.

Also replaced BetterSwitch with BetterCompoundButton, which can also be used for "BetterCheckbox"es.