Draft: glocalfileinfo: Try GetFileAttributes
If the stat path failed with EACCES, try retrieving attributes with GetFileAttributes. For example, for the "System Volume Information" directory that Windows creates on each drive, CreateFile fails even with access rights set to 0, while GetFileAttributes succeeds.
This commit also fixes usage of statbuf.attributes when stat failed
Fixes #3279