Any lease of real property by a county or city and county to a private person, firm, or corporation pursuant to this article shall be upon such terms and conditions as the parties thereto may agree and may be entered into as provided in this article. However, any such lease or agreement shall be subject to the provisions of Article 4 (commencing with Section 1090) of Chapter 1 of Division 4 of Title 1, and of Section 23006.