Fixing the issue with thread lock. I noticed that mouseDrag() and update() are
always called from the same thread.
Authored by: nerius 2023-09-24
Parent: [r1108]
Child: [r1110]