Merge "Revert "Revert "RegisterNativeAllocation: Avoid case of double blocking gc."""