[lipstick] Fix devicelock to use QSettings and not GConf

GConf settings doesn't sync well, so if end user removes battery, then settings might not be in valid state.
This change changed devicelock to use QSettings instead of GConf, and I also fixed broken tests.

Do not merge until the depending changes in JB#8859 have landed.