SC_Semaphore rewritten
Small workaround