Local thermodynamics governs the formation and dissolution of protein condensates in living cells