[Turbopack] implement dispose root task (#72611)
### What?
When a root task is disposed we need to flag it as inactive. This is e.g. the case when closing a WebSocket, which closes the subscriptions.
Not disposing causes unnecessary work which we want to avoid.