need to call write_barrier on every fiber context switch