Apollo, Blackstone and Goldman are among the lenders in talks to finance megadeals worth tens of billions of dollars apiece.