Check semaphore result after wait.