ReaderWriterLock sample