Fix GUI/render-thread data race in canvas-painter custom series
Extend the paint-snapshot approach to QCustomSeries: rendering now goes
through QCustomSeriesCanvasRenderer, whose synchronizeData() is the
only place it is safe to exchange data between the GUI and render
threads, since it runs on the GUI thread while it is blocked at the
Qt Quick sync point. canvasPaint()/canvasPrePaint() then run later on
the render thread using only what was copied during that sync.
[ChangeLog][Graphs2D] Custom 2D series can now be rendered with
QCanvasPainter.
Amends 03e677e12594c10e9658b1bbed695512359c9564.
Pick-to: 6.12
Task-number: QTBUG-148186
Task-number: QTBUG-146286
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Change-Id: Ief50d8dccbe1c66b2ebae20cff0e2cca3cf12772
Reviewed-by: Sami Varanka <sami.varanka@qt.io>