Make ExpirableCache threadsafe.