Don't attempt to call getsockname before binding an async socket