Expand PrerenderStore to include the legacy mode static generation too (#70741)
The "type" prepares for the "WorkUnit" model where everything has a
WorkUnit but it is the type that determines this.
The goal of this change is to be able to move the tracking of revalidate
time and tags from the WorkStore to the PrerenderStore since it's only
prerenders that collects such information, and it needs to be shielded
by CacheStore.
We should in theory be able to use this check instead of
isStaticGeneration now too.