[usb-moded] double-check devicelock to avoid race issues

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