Do not check for .so in /system in native mode

Bug: 18322681

In native mode, the .so file will be present only in the app specific
cache directory.  Any match in /system/lib is merely due to name clash
with another app.  Shared libraries in /system/lib are relevant only in
compatibility mode.

Change-Id: I2713820c76b63bd69f726e50f0a39974661c05f1
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index f341b4e..38a0bf5 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -223,6 +223,7 @@
         ALOGE("Unable to open shared library (%s): %s",
               scriptSOName.c_str(), dlerror());
 
+#ifdef RS_COMPATIBILITY_LIB
         // One final attempt to find the library in "/system/lib".
         // We do this to allow bundled applications to use the compatibility
         // library fallback path. Those applications don't have a private
@@ -237,6 +238,7 @@
             ALOGE("Unable to open system shared library (%s): %s",
                   scriptSONameSystem.c_str(), dlerror());
         }
+#endif
     }
 
     return loaded;