Since https://github.com/progval/Limnoria/commit/436d2bade8557111d13a586ab845ed43ff5872c8 , `@learn` does not check a factoid/key is locked before adding a new factoid. We should move the `locked` field back to the `keys` table then make it check this flag again.