use dead lock to stock main thread, and test rwlock