Fixed bug when WiFi lock was never acquired but released.