This PR fixes a few places where the lock mode was a string, resulting in the UI asking the user to type a string. With this change, the parsing is standardized and the options present as enums, giving a dropdown in the UI.