Android: Fix crash when any thread is launched. Need to detach JNI thread from env after finishing with in.