Merge "Update java_math_NativeBN to use BN_is_pow2 and BN_nnmod_pow2."