Thermodynamic determination of the equilibrium first-order phase-transition line hidden by hysteresis in a phase diagram