pass fd of socket to native routines instead of fd function itself

cool project, came across it while trying to get unix domain sockets working with nrepl!