autotest: Fix WiFiClient.scan() method to retry when device is busy

On the way, change the logic to reuse logic from iw_runner rather than
reimplement it.

BUG=chromium:314116
TEST=The given test passes.  We occationally see flake in
the network_WiFi_MaskedBSSID test, and
this attempts to address one cause of flake.

Change-Id: I61c722884cb3e1d3738ec5e5a7d532abd46c4f8d
Reviewed-on: https://chromium-review.googlesource.com/175367
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
2 files changed