[PATCH 6.12 116/189] riscv: Fix sleeping in invalid context in die()