Issue #3040166 by oriol_e9g, Mile23, willzyx, Berdir, alexpott, catch,...
Issue #3040166 by oriol_e9g, Mile23, willzyx, Berdir, alexpott, catch, cilefen: mkdir() fails in BrowserHtmlDebugTrait.php:141 because of a race condition
(cherry picked from commit 2628528d)