net: fix race in TestDNSThreadLimit

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13141045