[Core] Add refcount_t