namemap_cache: Absorb the expired calculation into namemap_cache.c