fix: changed ReadWriteLock to Lock