Unfolding of a ClC chloride transporter retains memory of its evolutionary history