High temperature phase transition in YBa2Cu3Ox: A thermodynamic key to the high temperature superconductivity