Fix memory leak in some plasma components
A few plasma components cache QSGTexture. Those components rely on texture references going away with QSGNode users. However, with the current tear down logic, OffscreenQuickView won't destroy any paint nodes.
Call QQuickRenderControl::invalidate() before deleting QQuickWindow to ensure that there are no paint nodes left after OffscreenQuickView.