[PATCH 6.6 071/129] riscv: Fix sleeping in invalid context in die()