CMake: Make ScxmlGlobalPrivate actually private


It's headers should not leak into the Scxml and StateMachine public
headers.

Amends commit d59b74c12cbd76f129db5b12246749206bcd3b29

Pick-to: 6.9 6.9.0
Fixes: QTBUG-134901
Change-Id: Ib176d1611be0a2d803e4b69b0ee3848cdae6f0e6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Lars Schmertmann <SmallLars@t-online.de>
commit749268080fb9764a20c2a3f2b6dfea0de0091cd9
parent9c76440fc593587f8a7033f693d6a9b63f4312f8
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeMon, 24 Mar 2025 12:49:32 +0100