Introduces work_queue_submit_internal for foremen.

work_queue_submit increases automatically the taskid. This is incorrect
for foreman, where taskid are set by the master. This commit makes
work_queue_submit a wrapper for a new function,
work_queue_submit_internal, which submit tasks without modifying the
taskid.