[jni] Use Alohalytics() global function to get statistics instance from C++.