Fix build output logging order (#56335)
Closes NEXT-1671
Move "Finalizing" to the bottom, and print tree view after file tracing
spinner
### After
```
✓ Generating static pages (5/5)
✓ Collecting build traces
✓ Finalizing page optimization
Route (app) Size First Load JS
┌ ○ / 133 B 80 kB
└ ○ /_not-found 876 B 80.8 kB
+ First Load JS shared by all 79.9 kB
├ chunks/main-app-f7da6251716e8121.js 78.2 kB
└ chunks/webpack-bf1a64d1eafd2816.js 1.66 kB
```
### Before
```
✓ Generating static pages (5/5)
✓ Finalizing page optimization
Collecting build traces .Route (app) Size First Load JS
┌ ○ / 133 B 80 kB
└ ○ /_not-found 876 B 80.8 kB
+ First Load JS shared by all 79.9 kB
├ chunks/main-app-f7da6251716e8121.js 78.2 kB
└ chunks/webpack-bf1a64d1eafd2816.js 1.66 kB
○ (Static) automatically rendered as static HTML (uses no initial props)
✓ Collecting build traces
```