[PATCH 6.6 735/744] riscv: prevent pt_regs corruption for secondary idle threads