cmd/go: "go test -c -test.bench=XX fmt" shouldn't hang
Fixes issue 6480.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/13925043