fix memory issue when change a persistent socket to non-persistent.

when you transient a persistent socket, the zmq_socket resource won't
be destroyed immediately.  you can continue use the socket as it's
non-persistent until you unset the corresponding zmq_socket_objects.