Cook the lentils and flax gel. Simmer 1 cup rinsed lentils in 3 cups water, partly covered, 25 minutes, until tender; drain well. Meanwhile, stir 2 tablespoons ground flaxseed with 6 tablespoons water and let it thicken 5 minutes.
Prep the pan and walnuts. Heat the oven to 375°F and line a 9x5-inch loaf pan with parchment, leaving a 2-inch overhang. Toast 1 cup walnut pieces on a baking sheet 7 minutes, until fragrant, then cool.
Cook the vegetables. Warm 1 tablespoon olive oil in a large skillet over medium heat. Cook the onion and carrots 5 minutes, add the mushrooms and cook 8 to 10 minutes more, until the pan looks dry. Stir in the garlic and 2 tablespoons tomato paste for 1 minute.
Pulse the base. In a food processor, pulse 1 cup of the cooked lentils with the skillet mixture, the soy sauce and the flax gel 6 to 8 times, into a thick, coarse paste.
Fold in the rest. Scrape the paste into a large bowl and fold in the remaining lentils, walnuts, oats, paprika, thyme, sage, salt and pepper. If it crumbles when pressed, mash it a few times with a potato masher.
Make the glaze. Whisk 3 tablespoons maple syrup, 2 tablespoons balsamic vinegar and 1 tablespoon tomato paste in a small saucepan and simmer over medium-low heat 3 minutes, until it coats the back of a spoon.
Fill the pan. Press the loaf mixture firmly into the pan, smooth the top and brush with half the glaze.
Bake. Bake 40 minutes, brush with the remaining glaze and bake 15 minutes more, until the top is firm, the edges pull from the pan and the center reads 165°F.
Rest and slice. Cool the loaf in the pan for 15 minutes. Lift it out by the parchment and cut 8 slices with a serrated knife.