bug fix: if portEXIT_CRITICAL was called from an ISR, it was enabling
interrupts during an ISR. However, some FreeRTOS functions like
xTaskRemoveFromEventList (used by SendMessageToQueueFromIsr) require
that interrupts are disabled when they are called. This occasionally
resulted in wrong thread context switches. For example, the Wrapper task
frooze occaisionally, resulting in watch dog resets.
enhancement: removed code for ISR handling, as portENTER_CRITICAL handles
this now generally.
enhancement: improved debug messages