std.file: Simplify/optimize mkdirRecurse

The left.length != pathname.length check both takes care of the
Windows-only check, and it avoids a pointless stat on the FS root.