A lockfile dependency may not exist in all sets

When looking up a lockfile dependency we did not account for a set not
having a matching specification at all.  Now we ignore sets without the
specification.

Part of #897
Add #897 to History