net: deflake TestDialTimeout

Fixes issue 3867.
Fixes issue 3307.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>