[libvirt PATCH] utils: add mutex to avoid races in virfile