Fix memory order and race bugs in Refbase.h & RefBase.cpp am: 70a46d674a
am: bc2a2284e4

* commit 'bc2a2284e40cbdaa8e9e69d7ab07a855a97d960d':
  Fix memory order and race bugs in Refbase.h & RefBase.cpp

Change-Id: I42653ab81302a03e5de20434591ca4f13b0940a9