reduce test time

- reduce condition timeout wait
- reduce repetition and sleep time for rwmutex tests
- rewrite semaphore tests to reduce test time