Use atomic variables for lock free access

Merged Anthony Fieroni requested to merge anthonyfieroni/kate:master into master

For intensive used trivially copyable variables it's better to use atomic ones. It prevents race in isCanceled

Merge request reports