Refactor: fencing,libcrmcommon,libpengine: remove dead code
In fencing, the apparently dead code was addressed by fixing
an erroneous test condition.
In libcrmcommon, the dead code (an unreachable switch default case)
was removed by refactoring duplicated code into a new private function.
Makes coverity happy.