Unless otherwise agreed in writing, the provisions of §§ 5–1103 and 5–1104 of this subtitle are applicable to any duty and liability of an owner of land leased to the State or any of its political subdivisions for any recreational or educational purpose.