Refactor: libstonithd: functionize converting stonith_action_t to svc_action_t
The only changes are:
- Avoid unnecessary calls to basename() (action->agent is never a full path, and wouldn't work if it were, because we prefix PCMK__FENCE_BINDIR to it)
- Use pcmk__str_copy() instead of strdup(), to assert on memory errors