Use correct timeout for semaphores.