Relativistic Feynman-Metropolis-Teller treatment at finite temperatures