Fixed pthread mutex on timingsock