Finite-temperature interacting scalar field theories in curved spacetime