Clean up zring, add zsock_flush