backport: fix(turbopack): Store persistence of wrapped task on RawVc::LocalOutput (#78488) (#78883)
This is a straightforward backport of
https://github.com/vercel/next.js/pull/78488. There were only a few
minor merge conficts.
This *mostly* impacted use of Turbopack with persistent caching (which
is canary-gated), but we saw some reports of it without persistent
caching, so this backports the fix.
Tested with
```
cargo check
cargo test -p turbo-tasks-backend
cargo test -p turbo-tasks-memory
```