Finite-temperature phase structure of SU(4) gauge theory with multiple fermion representations