fix: Check cache on dry run (#6466)
### Description
We need to check the cache so the cache metadata is in the task hash
tracker. This lets us produce the correct cache data for dry run
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->
Closes TURBO-1677
---------
Co-authored-by: nicholaslyang <Nicholas Yang>