Turbopack HMR: Avoid infinite loops caused by cycles between modules in the dependency chain. (#8210)
Previously, if a change were made in a module that participated in a
dependency cycle, gathering affected modules would loop infinitely. This
check prevents this.
Test Plan: Fixes vercel/next.js#65537