rtos: add sanity checking for FreeRTOS's quantity of priorities