A wealth tax could address this, but perhaps there are other legislative options, like (partial?) realization of capital gains when used as loan collateral in the income tax code, or something like that. I'd prefer that latter, as it seems more direct.
But I don't know the specific best way to address this, I'm no a tax expert. But, I think its pretty clear that this scheme is an abuse of the system and should be remedied in some way.
In fact, unless you have a cash-only account, you likely use margin every time you buy & sell a stock. Technically, stock transactions don't settle for 2-3 days. When your brokerage fronts you the shares to immediately buy, sell, or transfer funds, it's all margin under the hood. It gets even more complex once you get into options, swaps, and other esoteric financial instruments.
TLDR: It's simple in principle, but very complex in practice. Further complicating IRS rules is unlikely to win the whack-a-mole competition -- especially when IRS auditors under-target the ultra wealthy to begin with.