private void release() {
        if (refcount.decrementAndGet() == 0)
            currentThread.set(NO_CURRENT_THREAD);
    }
Release the light lock protecting the consumer from multi-threaded access.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java