pthread mutex cond and barrier