RTOS Solution for NoC-Based COTS MPSoC Usage in Mixed-Criticality Systems