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

- use core.atomic to reduce locking
Merge pull request #580 from dawgfoto/reduceTestTime

reduce test time