High-temperature self-energy corrections to x-ray absorption spectra