HDFS-5642: partial clean-up of jni_helper.c.