[libvirt] PATCH: Write pidfile earlier in startup