Make tests compile without the concurrency feature enabled


Add missing include guards and skip tests that need the concurrency
feature.

Pick-to: 6.10 6.9 6.8
Change-Id: I8e8c0ef91b8359bf9fb6416f19f70f6c02dc88a9
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
commit46ee9ede50d6e1cedfe07a5549879748743db44e
parentea669306b2f46be6e07a67a2cb0ace92484abc0a
authorØystein Heskestad <oystein.heskestad@qt.io>
committerØystein Heskestad <oystein.heskestad@qt.io>
commit timeThu, 10 Jul 2025 10:34:37 +0200