quagga: restore socket status on error paths in zclient_read function