Meanwhile, heat the olive oil in a large pan over low heat and add the onion and cook gently, stirring regularly, for about five minutes until softened. Add the garlic, chili, ginger, cumin, and garam masala and cook for a couple more minutes, then stir in the tomatoes, lentils, and stock. Bring up to a gentle simmer and leave to cook, occasionally stirring, for about 20-30 minutes until the lentils are soft and falling apart. Season generously with salt and stir in the lemon juice.