[libvirt] [PATCH 4/5] Add some APIs which use locking for crashsafe pidfile handling