Add semaphore and cyclic barrier tests.