I've just noticed that the Setgid test updated in rev a897684 fails under the race detector. The previous rev builds and tests cleanly.
$ set | grep ^GO
GO15VENDOREXPERIMENT=
GOARCH=amd64
GOBIN=
GOEXE=
GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0'
GOHOSTARCH=amd64
GOHOSTOS=linux
GOOS=linux
GORACE=
GOROOT=/home/mark/go
GOTOOLDIR=/home/mark/go/pkg/tool/linux_amd64
$ go test -run Setgid
PASS
ok _/home/mark/go/misc/cgo/test 0.002s
$ go test -race -run Setgid
--- FAIL: TestSetgid (5.00s)
setgid_linux.go:47: setgid hung after signal.Notify
FAIL
exit status 1
FAIL _/home/mark/go/misc/cgo/test 5.007s
I haven't investigated further.