cmGlobalGenerator: Refactor member cleanup between configures

Factor member cleanup out from cmGlobalGenerator::Configure and the
destructor into a dedicated helper to avoid duplication.  This fixes
clearing of BuildExportSets between configures.
Merge topic 'clear-generator-data' into next

5cf1120 cmGlobalGenerator: Refactor member cleanup between configures