qom: Use atomics for object refcounting