A Model for Protostellar Cluster Luminosities and the Impact on the CO–H2 Conversion Factor