Transition from sysV semaphores to posix semaphores