Move _refcount into a new namespace called tls created with threading.local