extract-utils: Fix ARCH of symlinks installed to app folders

Output example diff:

install_symlink {
-       name: "libwfdnative_libwfdnative_symlink32",
+       name: "libwfdnative_libwfdnative_symlink64",
       system_ext_specific: true,
       installed_location: "priv-app/WfdService/lib/arm64/libwfdnative.so",
       symlink_target: "/system_ext/lib64/libwfdnative.so",
}

Change-Id: I101d8efeea81502a9aeeaabb4571c405e7d6be93
diff --git a/extract_utils.sh b/extract_utils.sh
index f2b3a07..cbc9d9d 100644
--- a/extract_utils.sh
+++ b/extract_utils.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 #
 # Copyright (C) 2016 The CyanogenMod Project
-# Copyright (C) 2017-2023 The LineageOS Project
+# Copyright (C) 2017-2024 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
@@ -951,10 +951,10 @@
 
     for LINE in "${PRODUCT_SYMLINKS_LIST[@]}"; do
         FILE=$(src_file "$LINE")
-        if [[ "$LINE" =~ '/lib/' ]]; then
-            ARCH="32"
-        elif [[ "$LINE" =~ '/lib64/' ]]; then
+        if [[ "$LINE" =~ '/lib64/' || "$LINE" =~ '/lib/arm64/' ]]; then
             ARCH="64"
+        elif [[ "$LINE" =~ '/lib/' ]]; then
+            ARCH="32"
         fi
         BASENAME=$(basename "$FILE")
         ARGS=$(target_args "$LINE")