Move all qemu handling to the top of build_and_install_world

Submitted by:	sbruno
deadlock detection: Attempt to detect the packages that are holding up the queue.

Instead of crashing, fail them and skip things depending on them.