hw/core/machine-smp: Calculate total CPUs once in machine_parse_smp_config()