Turbopack: In CI only persist at the end (#87316)
### What?
Usually we persist the database every 2 minutes inside of `next build`, so you can continue from a partial build.
But in CI that doesn't make sense, so this changes it to only persist on shutdown.