Issue #2501191 by jhedstrom: CacheCollector can result in an exception is cid + classname is too long to be used as a lock name