refactor: fix non-determinism in resolve package (#90058)
Defer cell creation so it doesn't happen inside of async loops
There are a number of async functions in the resolve package that either directly construct ResolveResult or defer to a turbo task function, this leads to non-determinism when callers invoke these in async loops. The fix is just to defer cell creation out of these async helper functions. This was discovered by enabling the `verify_determinism` feature in #90013