[devicelock] Fix bug related to secondary device lock check

Due to the secondary device lock check the mode was always undefined
and charging mode not correctly set. Luckily the kernel fallback
of the charging driver kicks in, which is why this went unnoticed.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>