Lattice-model study of the thermodynamic interplay of polymer crystallization and liquid-liquid demixing