cmd/go/internal/work: ensure correct group for TestRespectSetgidDir
cmd/go/internal/work: ensure correct group for TestRespectSetgidDir

mkdir(2) inherits the parent directory group on *BSD (including Darwin),
and it may inherit on other platforms if the parent directory is SetGID.

This can cause TestRespectSetgidDir SetGID to fail when the process does
not have have permission for the inherited group on the new temporary
directory.

Fixes #29160

Change-Id: Iac05511e501dfe307a753f801223b1049cc0947d
Reviewed-on: https://go-review.googlesource.com/c/153357
Reviewed-by: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
Run-TryBot: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>

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