Fix race condition in fragment cache.
Add lock upgrade mode.
Rename to LockUpgradeRule.
Add lock upgrade rule tests.
Merge remote-tracking branch 'remotes/origin/master' into stream