[BZ-976824] fix performance regression caused by new UpgradableReentrantReadWriteLock