Fix TAB-completion + .gdb_index slowness (generalize filename_seen_cache)