[libvirt] [PATCH 2/4] tests: Introduce global mock library