you're confusing a creditor with a bondholder. if 51% or more NEW stock is issued, to anybody, the nol's are toast for the most part. even if it is less than 50%, i think there is some kind of pro-rata deal. it can get complicated for sure.
accounts payable and loans are two different things.