tsan: fix data race in VCLXWindowImpl

Change-Id: I68894dabdaa22ac3733d08ae85df5c82e3b9654c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169333
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 60e8446323e03d097b7272f37c3b9e92a66a7cbc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169304
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 7d53171..c5cfc9e 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -62,6 +62,7 @@

#include <helper/accessibilityclient.hxx>
#include <helper/unopropertyarrayhelper.hxx>
#include <atomic>

using namespace ::com::sun::star;

@@ -118,7 +119,7 @@ public:
    bool                                mbSynthesizingVCLEvent  : 1;
    bool                                mbWithDefaultProps      : 1;

    sal_uLong                           mnListenerLockLevel;
    std::atomic<int>                    mnListenerLockLevel;
    sal_Int16                           mnWritingMode;
    sal_Int16                           mnContextWritingMode;