[usb-moded] some minor fixes

Fix some small naming issue in configure.ac, fix compilation without devicelock

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Handle all the kmod init where all the modules are handled

We had the reference to the kmod ctx in usb-moded.c, now instead all is in the module
handling code. Which enables us to plug in libusbg / USB gadget fs later in a
cleaner way.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
[network] Correct the check for broken network interfaces. Fixes: CID#
1230271

The and should be a logical or, otherwise that piece of code does not get
excecuted.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
[network] Fix minor resource leak. Fixes: CID#1230273

Free the network interface name in case it does not exist,
so it does not get overwritten by the next possible interface.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
[usb setting logic] Do not check for mode_to_set_twice Fixes: CID#1230272

In case we compile without devicelock support the old code already checked
for a mode to set. However this meant the secondary part of the loop got never
reached. Now we check in one place. No more dead code. Also we cleaned-up a
minor mem leak at the same time, as the mode_to_set did not get cleaned-up in
case it matched the current mode.

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

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