fix timeouts issues with jobs waiting for a mutex