[POWERPC] Fix atomicity of TIF update in flush_thread()