[libvirt] [PATCH 3/4] virpidfile: replace fopen/fwrite/fscanf with more portable version