[libc] prefer *at syscalls in sys/stat wrappers (#195792)
- so the changes flips the #ifdef order to prefer the *at syscalls over normal ones.
- In modern architectures, *at system calls are preferred over normal
system calls.
- so by checking for "*at" sys calls first, we ensure better
compatibility with modern systems.
- then normal syscalls moved to else for support of older ones.
Signed-off-by: udaykiriti <udaykiriti624@gmail.com>