[libvirt] [PATCH] Only initialize capabilities after setting dir permissions