bsearch behavior is undefined when 'key' param is a null-ptr (on android 'undefined' sometimes means calling abort)
android; disabled shared handles
shared handles; don't install atexit(handle_cleanup) if shared handles are disabled (atexit() is called at process termination; not at dlclose() - which fails on platforms with a dynamically loaded mono lib)