Merge "RegisterNativeAllocation: avoid an extraneous blocking gc."