presto-main/src/main/java/io/prestosql/operator/Driver.java/Driver/checkLockHeld
class Driver:    @GuardedBy("exclusiveLock")
    private synchronized void checkLockHeld(String message)
    {
        checkState(exclusiveLock.isHeldByCurrentThread(), message);
    }