Reimplement link_exists_p to use fstatat64.