all: make tests able to run multiple times.

It is now possible to run "go test -cpu=1,2,4 std"
successfully.

Fixes issue 3185.

R=golang-dev, dave, minux.ma, bradfitz
CC=golang-dev
https://codereview.appspot.com/7196052