Fix an occasional crash in the qmlpuppet


QQuickKeyframeGroupPrivate::keyframes and
QQuickKeyframeGroupPrivate::sortedKeyframes
need to stay in sync in order to function correctly.
This patch adds a call to the synchronizing function
in clear_keyframes like it was done in append_keyframe.

Pick-to: 6.3
Pick-to: 6.4
Change-Id: I74f88c83baa18cec4cbe2f3ffc30ade158035f44
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
commitbb4f751b452b3f25a7eacdc24fcb362a2c992a2d
parent87a875edb4f82ce22d6b12f6c1aea34ad189405e
authorKnud Dollereder <knud.dollereder@qt.io>
committerThomas Hartmann <thomas.hartmann@qt.io>
commit timeWed, 13 Jul 2022 12:16:31 +0000