[SPARC64]: Fix atomicity of TIF update in flush_thread()