vndk-def: Check access in _enumerate_path()

This commit add an access check in _enumerate_path() so that soft links
that cannot be resolved on host can be ignored.

Bug: 80459974
Test: vndk_definition_tool.py check-dep --check-apk \
  --system ${ANDROID_PRODUCT_OUT}/system \
  --vendor ${ANDROID_PRODUCT_OUT}/vendor

Change-Id: I0b0b793784b005139a62c5a48a5bd8f48cdd55c3
diff --git a/vndk/tools/definition-tool/vndk_definition_tool.py b/vndk/tools/definition-tool/vndk_definition_tool.py
index 62631cb..5cb1bf8 100755
--- a/vndk/tools/definition-tool/vndk_definition_tool.py
+++ b/vndk/tools/definition-tool/vndk_definition_tool.py
@@ -2666,6 +2666,8 @@
     for base, dirs, files in os.walk(root):
         for filename in files:
             path = os.path.join(base, filename)
+            if not is_accessible(path):
+                continue
             android_path = posixpath.join('/', partition, path[prefix_len:])
             yield (android_path, path)