Thermal stability and irreversibility of skyrmion-lattice phases in Cu2OSeO3