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
1 file changed