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.
9 jobs for wip/oholy/fix-trash-symlink in 15 minutes and 31 seconds (queued for 4 seconds)