[libvirt] [PATCH v3 0/6] Fix virConnectRegisterCloseCallback and get rid of global variables