Mark std.file.isDir and its unittest as safe

They do not contain any unsafe operations.