change bind_unused_port to pass None as port

bind_unused_port was passing 0 as port number to the socket module.
This generated some exceptional behaviour on systems where nslookup of
localhost didn't returned the loopback interface.
Merge pull request #777 from mauriciosl/master

bind_unused_port raising gaierror: [Errno 8]