Added custom wake locks for WifiService. Fixed logic issue related to WifiInUse flag