Fix a deadlock I added just recently when fixing a crash. This is around removing jobs and is a deadlock on the alljobs mutex.