net: make IP address selection work correctly on IPv6-only kernel

Update issue 3610
Update issue 5267
Update issue 5707

R=golang-dev, bradfitz, dave, fvbommel
CC=golang-dev
https://codereview.appspot.com/11958043