Fix RTLD_NEXT lookup for the local_group

  Linker used to skip RTLD_NEXT within local_group when
  caller->next is nullptr (which represents load order
  but not the order within local_group dependency tree)

Bug: http://b/21380474
Change-Id: I178fc4657b19bceb871635b177c1df67855b1708
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 1155a36..34b335e 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -965,7 +965,7 @@
   soinfo* start = solist;
 
   if (handle == RTLD_NEXT) {
-    if (caller == nullptr || caller->next == nullptr) {
+    if (caller == nullptr) {
       return nullptr;
     } else {
       start = caller->next;