Implement cgminer specific cgsem semaphores to imitate unnamed semaphore behaviour on osx which does not support them.