feat: use prefixed ui in task graph visitor (#5930)
### Description
Various plumbing changes that allow us to construct a prefixed UI
instance for each task. This instance is necessary for interaction with
the task cache.
Reviewer Notes:
Each commit is a fairly simple addition/change to the visitor and can be
reviewed on its own.
### Testing Instructions
Observe that colors are displayed when running tasks with the run stub
still:
<img width="592" alt="Screenshot 2023-09-11 at 2 25 08 PM"
src="https://github.com/vercel/turbo/assets/4131117/558f6114-435a-49dd-b8ac-3885ee281d43">
Closes TURBO-1322
---------
Co-authored-by: Chris Olszewski <Chris Olszewski>