Bug 985878 - Make AtomicRefCounted thread safe; r=khuey