[libvirt] [PATCHv2] util: ensure safe{read, write, zero} return is checked