Fixing bug related to concurrency in dir creation. See PHP bug #35326.