[libvirt] [PATCH 2/4] tests: Allow use of close() in mock libraries