Stricter libc-client symlink check

Fixes Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=463800