misc/ios: don't override GOCACHE on the device
misc/ios: don't override GOCACHE on the device

The iOS exec wrapper copies the environment variables to the binary
running on the device. However, some variables such as HOME, TMPDIR and
GOCACHE refer to directories that might not be valid on the device.

The wrapper already ignores HOME and TMPDIR, but after GO111MODULE
was flipped to on for the standard library, cmd/go tests started
failing without a valid and writable GOCACHE.

It took a while to reproduce because go test does not set an explicit
GOCACHE but cmd/dist test does.

Fixes #30914

Change-Id: If186cddc5cfd7ad39a0b3eb95f9c64a7d53a27e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/168557
Run-TryBot: Elias Naur <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@eliasnaur.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>

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