fix thread yield error in sema up