It's a hack in the current implementation to give background stuff time to happen (like context creation). It's most likely not going to stay, once the other things are fixed.
In short, it's just there to prevent a race condition between multiple threads.