misc/android: serialize adb commands on android emulators
misc/android: serialize adb commands on android emulators

Android emulator builders are soon to join the trybot set. To avoid
flaky runs, work around a longstanding adb bug where concurrent adb
commands sometimes fail.

I haven't seen the problem on actual devices until recently. It seems
that the recently added "adb wait-for-device" can introduce flakyness
with errors such as:

adb: error: failed to get feature set: protocol fault (couldn't read status): Connection reset by peer

Instead of working around that, give up and serialize use of adb
everywhere.

Fixes #23795
Updates #23824

Change-Id: If347c9981fa32ff8a1e14b7454f122ef682450a6
Reviewed-on: https://go-review.googlesource.com/c/163625
Reviewed-by: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>

akutz/go,CAFxX/go,CAFxX/go,nawawi/go,josharian/go,cloudflare/go,nawawi/go,nawawi/go,cloudflare/go,nawawi/go,CAFxX/go,cloudflare/go,josharian/go,nawawi/go,CAFxX/go,golang/go,cloudflare/go,akutz/go,golang/go,golang/go,akutz/go,akutz/go,akutz/go,akutz/go,golang/go,nawawi/go,akutz/go,akutz/go,cloudflare/go,nawawi/go,josharian/go,CAFxX/go,nawawi/go,golang/go,golang/go,golang/go,cloudflare/go,josharian/go,cloudflare/go,josharian/go,cloudflare/go,CAFxX/go,josharian/go,CAFxX/go,josharian/go,CAFxX/go,golang/go,josharian/go