Bankrupt circus producer prepares to sign deal that would strip TPG and other shareholders of their ownership stakes