fix deadlock with one broken package. maxcpus flag.