Add awaiting external dependency predicate

cc @myronmarston 
These could be collapsed into one line:

```lua
func(Plines.enqueued_job(self.pipeline_name, jid))
```

...which would be shorter than the `local job =` line is.