Add get() function to class RefCountPtr
Fix a bug related with worklist dequeue.