Use twc->num_passes to calculate idle_join.
Use twc->num_passes to calculate idle_join.

- Data sync_pass is updated only when the task finishes and therefore cannot
  be used.

anamud/mir-dev,anamud/mir-dev,anamud/mir-dev,anamud/mir-dev,anamud/mir-dev