Optimize semaphore queues (one item for many processes)