Borrowing against illiquid assets should be considered a taxable event. Seems like this would entirely fix the loophole.
This basically defers the taxes to a later date and charges you interest for 'em. Which might be worthwhile, depending on how quickly and reliably your capital is growing.
If you have a lot of assets you can just refinance your loan with more debt.