kernel: fix an issue with infinite stack traces on MIPS