magit-section-action: don't pass struct to hooks, pass info slot value