[libvirt] [PATCH] tests: fix mocking of stat() / lstat() functions