fix: reliably write merge back to non-main default branch on multi-worker pools (closes #9568) (#10204)