Spontaneous switching of permeability changes in a limestone fracture with net dissolution