misc/cgo/test: fix bad C test code that fails on some configurations LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/169800043