Make std.file.DirEntry._ensureStatDone safe

It contains the following unsafe operations but we can verify that they can be trusted.

- use of unsafe functions `core.sys.posix.sys.stat.stat` and `std.internal.cstring.tempCString`