JNI FindClass result caching and AttachCurrentThread if it was detached.