Try_Jobdir: fix a race condition

Disclaimer: I'm a complete Twisted noob, so make sure what I'm doing makes sense :)

This fixes an issue that has been randomly keeping builds as "pending" on our buildbot for the last 2 weeks. I think that fix makes sense, this is basically what is done for the other try schedulers anyway (Try_Userpass, for example).