Refactor: libpe_status,pengine: functionize iterating over a host's guest nodes
This functionizes some of find_fence_target_node_actions() into a new
library function, pe_foreach_guest_node(), to isolate remote-related code
and allow the functionality to be used elsewhere.