Enhancing RWLock sample