Fix freezes when changing brush properties/curves
This patch basically makes brush preview to be calculated asynchronously
in a separate worker thread and update preview only on a completion-signal
arrival.
WARNING: this patch can theoretically cause a bug, which will make
the strokes on canvas be painted in extremely small size
(< 25px). If it happens, then originalPresetSize recovering
should be restored.
BUG:410158