[libvirt PATCH] util: keep the pidfile locked