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