[turbopack] Break ties using a counter instead of node index (#87252)
This should ensure that if priorities are ambiguous we revert to a BFS order
BFS is better than DFS for the `fixed point` traversals since we are generally propogating information 'down' the graph so to the extent we can we should visit all r-deps first. BFS approximates this.