Refactor: crmd,libcrmcommon,mcp: use new procfs functions to reduce duplicated code
This has the side effect of quieting some coverity false positives.
Other procfs handling is scattered throughout Pacemaker code and could be
abstracted similarly in the future.