VLOOKUP: Fix caching problems.

Don't hook up new cache entries before they are completely done.  That
will prevent them from being pruned at an inconvenient time and from
being used before it's ready.