Koopmans' theorem in the statistical Hartree–Fock theory