[charger] do not let devicelock interfere with setting dedicated charger mode

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