Ensure the socket passed in is a gevent socket.

Undo my previous change to "make it work" and instead ensure the socket
is correct. This will help prevent future generations from running code
that just hangs and instead crashes.