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