SC_Semaphore rewritten
Small workaround
FP: flush m_code_level & check emptyness of m_end_offsets
Paritally revert #359
rCriticalSection & rSemaphore removed

SC_Semaphore errors fixed
Room for interrupt threads