Make std.file.getLinkAttributes safe

On Windows systems, it does not contain any unsafe operations.
On Posix systems, it contains the following unsafe operations but we can verify that they can be trusted.

- use of unsafe functions `core.sys.posix.stat.lstat`, `std.internal.cstring.tempCString`
- taking address of a local variable (`lstatbuf`)