Fixed #23642 -- Made LocMemCache.incr() thread-safe as documented