Build: Share StaticWorker between static check and static generation (#85860)
## What?
Shares `static check` and `static generation` workers.
On hello-world:
Before:
```
next build test/e2e/app-dir/hello-world 7.58s user 1.07s system 332% cpu 2.603 total
```
After:
```
next build test/e2e/app-dir/hello-world 7.18s user 0.87s system 308% cpu 2.612 total
```