Switch examples to build as isolated sub-builds part 2


qt_examples_build_begin needs the EXTERNAL_BUILD flag
to know that it's safe to build examples as ExternalProjects.

It still won't do it in CI until we enable building
examples as ExternalProjects for prefix builds.

This is preparation for that.

Pick-to: 6.2 6.3
Task-number: QTBUG-90820
Change-Id: I838201890f1bc77a187b8059d12b285debf10f60
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit14578645e86fb859a1b09f77958d19309f038e57
parenta240131252ca2f8d94811fc3c7e695c556295673
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeSat, 5 Feb 2022 01:36:17 +0100