Let worker wait for tasks running on other workers to complete.

See #222 and #223.