Collect meta-data flags when allow-flags-overwrite is enabled
Summary
This fixes an issue introduced in !862 (merged) with the collection of meta-data in the python setup. Some flags were ignored when ALLOW_CXXFLAGS_OVERWRITE
was enabled. This is fixed by this MR.