socket: getsockname doesn't work on unbound windows sockets

This fixes the failing stream test.