This fixes the issue where XTOS_SET_INTLEVEL would lower INTLEVEL from 4 to 3, when eTaskGetState is invoked during the core dump, triggered from the interrupt watchdog.