glocalfile: Use MAXSYMLINKS when following symlinks
glocalfile: Use MAXSYMLINKS when following symlinks

Currently, readlink() is used only 12 times when expanding symlinks.
However, kernel uses 40 for this purpose and it is defined as MAXSYMLINKS.
Use that constant if available, or 40. See:
https://github.com/torvalds/linux/include/linux/namei.h.

endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib