PYTHON-436 Fix double-return of the socket in _send_message