Merge "RegisterNativeAllocation: Avoid case of double blocking gc." am: a65f767b74
am: 7f0198cd50

Change-Id: I97e330e384c5fcce8e42fd7b2e766469f5c92380