Private lenders led by Apollo Global Management Inc. and Blackstone Inc. are providing a $4 billion loan to support Thoma Bravo’s acquisition of Boeing Co.’s flight navigation unit and other digital assets, according to people with knowledge of the deal.