Fix RefCountTest and RCURefCount race