Add basic lock/unlock functionality to keychain

Still no timeout functionality, but just basic locking.