Lenders will want to make sure the loan is paid to zero before the end of the lease. If the lease has 26 years to run, they'll give you a 25 year loan term but not a 30 year term.
They're not going to have a problem with a 99 year lease for accessing capital gains, but keep in mind that...