Don't deadlock when a dep has no libs
auto merge of #528 : alexcrichton/cargo/deadlock, r=brson