update create_semaphores