Synchronize access to WifiScanner members

start()/stop()/getAPCount() and onReceive() are executed in different threads
and race conditions occurs.