LockscreenPattern: Fix toggle dots/error pattern visibility

This fix the issues dot/error pattern state doesn't save.
also cleanup redundant code.

Change-Id: Iebaac9679ad9c621d62effd700689485db7c252a