[libvirt] Cannot write data: Broken pipe when accesing libvirt from a forked process