Redesign dlopen() locks to be recursive per thread
picked from
https://github.com/android/platform_bionic/commit/f9c5afb1f9d8e615ab98774a10bbf117962db66d
Merge "Redesign dlopen() locks to be recursive per thread picked from https://github.com/android/platform_bionic/commit/f9c5afb1f9d8e615ab98774a10bbf117962db66d" into gingerbread