[Profiler] Use the correct function to increment the refcount