fix "always need to unlock gesture pattern when changing library" error

Though the error was fixed, there still left another tough problem here, which damages user experience a lot.

After set up Gesture Lock, it cannot restore its checked state, so every time resume back to Settings menu, the Gesture Lock checkbox was always unchecked.

This bug will be fixed in next PR.