Bugfix: avoid assertion by checking sc priority

Kernel fails if Sc priority is higher/equal to the maximum (128 currently)