[Turbopack] await shutdown before ending pool (#75545)
### What?
Make sure to gracefully shutdown the Turbopack process, by waiting for shutdown before killing the process.
This makes sure Persistent Caching will have time to store the cache, before it's killed. That should happen in background while doing SSG. (Maybe we need to change that in future for memory reasons, but it will work for now.)