Heat 2 tablespoons of the oil in a large heavy pot over medium heat. Add the onions and cook for 15 to 20 minutes, stirring often, until deep golden brown. Lift out half of the onions and set them aside for garnish.
Add the garlic and turmeric to the onions left in the pot and stir for 1 minute. Pour in the broth, add the salt and pepper, and bring to a boil.
Add the parsley, cilantro, dill, spinach and green onions. Lower the heat, partly cover and simmer for 30 minutes, stirring now and then, until the herbs are dark and soft.
Meanwhile, rinse the shirataki under cold running water for 1 minute, then dry-fry them in a hot nonstick pan for 3 to 4 minutes to remove excess water. Snip into shorter lengths with kitchen scissors.
Add the shirataki to the soup and simmer for 10 minutes more so they soak up the flavor. Stir in half of the kashk, then taste and adjust the salt.
For the mint oil, melt the butter with the remaining 1 tablespoon of oil over low heat. Take the pan off the heat and stir in the dried mint for 30 seconds, just until fragrant.
Ladle the soup into bowls and top with the remaining kashk, the fried onions, the walnuts and a drizzle of mint oil.