Preheat oven to 375°F (190°C). Line a 9x5-inch loaf pan with parchment paper, leaving an overhang on sides.
Heat 1 tablespoon olive oil in a skillet over medium heat; saute onions, celery, mushrooms, and garlic for 8 minutes until soft and dry.
In a large bowl, mash 1 cup of cooked lentils with a fork; add remaining whole lentils, sauteed mushroom mixture, oats, walnuts, flax egg, tomato paste, soy sauce, thyme, and rosemary.
Mix thoroughly until mixture holds together firmly when pressed.
Press mixture firmly into prepared loaf pan, packing tightly to avoid air pockets.
Brush top with balsamic maple glaze.
Bake for 45 to 50 minutes until edges are browned and glaze is bubbly and caramelized.
Cool in pan on a wire rack for 15 minutes before using parchment overhang to lift out and slice.