Don't block for too long on device lock query, 1,5s should be ample time.
We don't want to block usb functionality for 20-30s

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Improvements to mode clean-up. Also fixes mass-storage clean-up.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Avoid multiple runs of the disconnect routine in case we get multiple
disconnect signals. Improve the comments in the disconnect handling.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Merge branch 'master' of github.com:nemomobile/usb-moded