[libvirt] [PATCH 1/2] tests: Use plain close() in mock code