lru_cache: use correct type in sizeof for allocation