Changef safe send and recv to czmq functions