Heat 1 tablespoon ghee in the pan over medium heat. Add 1 teaspoon cumin seeds. Let them sizzle 20 seconds. Add the pinch of hing.
Add onion if using. Cook 3 to 4 minutes until soft and the raw smell is gone.
Add 8 sliced garlic cloves, ginger, and green chilli. Cook 30 to 45 seconds until the garlic edges turn pale gold. Pull the pan if they darken faster than that.
Add tomato. Cook 2 to 3 minutes until it softens and the oil looks a little separated.
Add coriander, turmeric, Kashmiri chilli, and 1/2 teaspoon salt. Stir 20 seconds.
Pour in the mashed dal. Add 1/2 cup hot water. Simmer 4 to 5 minutes on medium-low, stirring so it does not stick. Taste for salt. The dal should pour slowly from a ladle, not sit in a lump.
Stir in garam masala, kasuri methi if using, and lemon. Turn off the heat. Scatter cilantro.