[sgen] Make the second bridge DFS pass use an implicit stack to avoid stack overflow.