Add read write lock.