U4-4931 - 6.2 - lock contention & potential application lockdown

See details in issue tracker, this is #384 and #388 re-targeted for 6.2(.2).
Not "better" but equivalent, perfs-wise, and it allows us to not repeat a lot of code by using the same methods for both caches. Otherwise I'd sure have use a lock(...).