Add simple concurrency.

Note that there is no locking and dependencies can run more than once.