QQuick3DParticleAffector: don't pass const Connection to disconnect()
That overload will be deprecated, because the function modifies the
argument.
Use a consume loop to avoid the detach (attempt): this is in the
dtor, so nothing uses the m_connections container afterwards. The
unRegisterParticleAffector() call only affects containers in
QQuick3DParticleSystem.
Amends 4838a84935cd9f2a4d74cdbf737b9c3da11aabfa (picked to 6.1).
Pick-to: 6.12 6.11 6.8
Task-number: QTBUG-144929
Change-Id: I6d01c284a1c1572c7cc04e76e2985f641dd04b33
Reviewed-by: Christian Strømme <christian.stromme@qt.io>