[PATCH v8 18/29] riscv: signal: abstract header saving for setup_sigcontext