8191360: Lookup of critical JNI method causes duplicate library loading with leaking handler

Unload shared library after lookup to avoid keeping it live.

Reviewed-by: vlivanov, dholmes
2 files changed