Behaviour of global static, thread-local, atomic variables in multi-threading