job_coordinator: avoid duplicates in inputs.
job_coordinator: only submit a task to the disco_server if it is permitted.

This mechanism allows us to avoid submission of a task to the disco_server if
the policy dictates we should not be doing it.
With this commit, the stages are sequential again because of the policy.