More close race fixing.
More close race fixing.

Don't drop the lock in sock_close while holding the pipe reference.
I'm pretty sure this is responsible for the use-after-free race.

nanomsg/nng,nanomsg/nng,nanomsg/nng,nanomsg/nng