LockscreenPattern: Fix toggle dots/error pattern visibility
This fix the issues dot/error pattern state doesn't save.
also cleanup redundant code.