Fix for interprocess race condition.

Sometimes happens when running multiple processes in parallel for the first time.