[DF-4794] JniExtension attaches thread to JVM only when it is needed.
Android thread detaches from JVM at destructor;