Previously the first 300 entries would stay around forever, and any new queries
would thrash on entry 301.
The cache code/data structures were more complicated than necessary.
Cleaned up the interface to isInSameTranslationUnit, which had unspecified
side-effects that other code was relying on.