Added locks and unlocks to connects and disconnects in Network and
Bluetooth interfaces.