Refactor: libpacemaker: pass parent XML when creating graph action
Rename action2xml() to create_graph_action(), and pass it the parent XML
element that the new action should be added to.
This allows us to make it return void, and drop an add_node_nocopy() call
after each time it is called, to make it easier to follow.