Replace #pragma once with traditional header guards


#pragma once was never allowed for installed headers¹ and syncqt.cpp
will now start to enforce this, so port the existing users in this
module to traditional header guards.

¹ https://lists.qt-project.org/pipermail/development/2022-October/043121.html

Amends 0fbfa7affa2aa22d338135d6f52ef3d3d4145766.

Pick-to: 6.7 6.6 6.5 6.2
Change-Id: Id38cd34f97946e7f7d5033f431876ea8e8b06978
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit301092d8bd269b02fb8c749e38fa464f819835ab
parent1dc6f7ba37c6a6529bba61fd38fd652ac88c3be7
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeWed, 28 Feb 2024 17:12:10 +0100