fixed some race conditions in Jobserver