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

Though the error was fixed, there still left another serious problem here, which damages user experience.

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.
代码中其他几个地方也有同样的情况，也要改过来。