Scaling of inclusive γ spectra p + p → γ + X at ISR energies and the thermodynamic model