Initialize, update fiber state in context switch