The trustee has an equitable lien on the trust property as against the beneficiary in the amount of advances, with any interest, made for the protection of the trust, and for expenses, losses, and liabilities sustained in the administration of the trust or because of ownership or control of any trust property.