ios thread synchronization test, using NSCondtion.