fix a bug in r2 that a pooled object can be disposed twice

RB=223135
R=dhoa,si-dev,sihde,zzhu
A=dhoa,zzhu