Solve the dependency from the parameter concurrent_tasks

This solution is conservative, i.e. it does not change in any way the current distribution logic. Notice the addition of a test that makes the problem clear.