QQuick3DSkin: don't pass const Connection to disconnect()
That overload will be deprecated, because the function modifies the
argument.
Don't use consume loops: In the dtor, there's no code following the
loop, and the body clearly doesn't modify the container, so we don't
need to pay for the extra three moves, and in the other function, a
consume loop would kill capacity() that the next connect() could reuse.
Amends 998f8a52812d9e03b25faf55e4c4344d69acf7da (picked to 6.5).
Pick-to: 6.12 6.11 6.8
Task-number: QTBUG-144929
Change-Id: Iebb1d8a70b2a97c262dafa8ed2004d3962c8990e
Reviewed-by: Christian Strømme <christian.stromme@qt.io>