fixed some race conditions in Jobserver (2)