properly reference count the threads that are crated by scanning proc