Firms exploit joint-venture loophole to renege on $18b in debts