Fixed #18541 -- LocMemCache cache backend no longer locks if the process...

... of pickling tries to write to the cache