Fix exception handling in test.support.bind_port.

In Python 3.3, exceptions on sockets raise OSError, but since this code
is a backport for 2.x, it needs to use the previous exception type,
namely, socket.error.