Notwithstanding any law to the contrary, a county legislative body may adopt a resolution by a majority vote prohibiting term limits for persons appointed to boards or commissions by the county mayor if the appointee serves without compensation, not including reimbursement for travel and expenses.