fix timeouts issues with jobs waiting for a mutex
Merge pull request #67 from kratob/two

fix timeout issue when using mutexes