os/exec, syscall: fix tests to pass when GOGCTRACE=1 is set

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>