That isn't a loophole. It is working exactly as was intended. Reinvesting is good.
The deal is that you can delay taxes by reinvesting (and either make the government more money at the end or lose it all if you were a fool, but you gain nothing by losing it all) but you cannot skip them when it comes to taking the profit out. The entire point of it was to promote investment into businesses which has kind of been a crucial factor in international competitiveness since the Industrial Revolution. Remember the fall of US Steel? That happened because they didn't reinvest.
The deal is that you can delay taxes by reinvesting (and either make the government more money at the end or lose it all if you were a fool, but you gain nothing by losing it all) but you cannot skip them when it comes to taking the profit out. The entire point of it was to promote investment into businesses which has kind of been a crucial factor in international competitiveness since the Industrial Revolution. Remember the fall of US Steel? That happened because they didn't reinvest.