net: use DialTimeout in TestSelfConnect
net: use DialTimeout in TestSelfConnect

This avoids problems with systems that take a long time to
find out nothing is listening, while still testing for the
self-connect misfeature since a self-connect should be fast.
With this we may be able to remove the test for non-Linux
systems.

Tested (on GNU/Linux) by editing selfConnect in
tcpsock_posix.go to always return false and verifying that
TestSelfConnect then fails with and without this change.

Idea from Uros Bizjak.

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/39200044

glycerine/jeaten-go-arrayof-structof,bryanxu/go-zh,bryanxu/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,rdp/rogerpack2005-golang,d0f/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,webfd/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,bryanxu/go-zh,d0f/go-zh,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,webfd/go-zh,bryanxu/go-zh,webfd/go-zh,d0f/go-zh,d0f/go-zh,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,webfd/go-zh,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,rdp/rogerpack2005-golang,d0f/go-zh,bryanxu/go-zh,webfd/go-zh,d0f/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,bryanxu/go-zh,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc