Tracking metastable states to free-energy global minima