Anomalous thermal effects in photoelectron spectroscopy of d-band metals