Lattice thermal resistivity due to the presence of electrons