Move _refcount into a new namespace called tls created with threading.local
Initializing tls._refcount for any thread.
Merge branch with thread local refcount.