Refactor: libcrmcommon: Move opening /proc/self/fd into a function.
Make it an internal-only function and protect its body with the HAVE_LINUX_PROCFS guard.
Ref T385