Add awaiting external dependency predicate

cc @myronmarston 
Why do you bother with the `is_pending` and `is_timed_out` locals?  Why not just assign `dependency_is_pending` and `dependency_is_timed_out`?