Free Energy Calculation of Mechanically Unstable but Dynamically Stabilized Phases