Fix a few bugs in threaded dependency generation.