feat: Check the number of direct dependants while tree shaking (#8473)
### Description
<img width="285" alt="image" src="https://github.com/vercel/turbo/assets/29931815/c37d81fb-ab6e-482a-8e6f-3784a62e923b">
In the graph above, `x` and `y` can both reach `item 5`, but grouping from `item 5` to `item 9` is fine