presto-main/src/main/java/io/prestosql/operator/Driver.java/Driver/isHeldByCurrentThread
class Driver:        public boolean isHeldByCurrentThread()
        {
            return lock.isHeldByCurrentThread();
        }