Heat oven. Heat the oven to 180°C (160°C fan, gas 4) with a shelf in the middle.
Prep everything. Pat the thighs dry and season them. Cut the bacon, onion, carrots, leeks and mushrooms as listed.
Brown chicken. Heat the oil in the casserole over a medium-high heat. Brown half the thighs skin-side down for 7 to 8 minutes, turn for 2 to 3 minutes, then remove. Repeat with the rest.
Pour off fat. Spoon off all but about 1 tablespoon of fat, keeping the browned bits in the pot.
Soften base. Add the bacon, onion, carrots and mushrooms and cook over a medium-high heat for 5 minutes. Add the garlic for the last 30 seconds.
Add flour. Stir in the flour and cook for 1 minute.
Add stock. Pour in the hot stock a little at a time, stirring and scraping the base. Add the thyme and bay leaf.
Return chicken. Put the thighs back skin-side up, with the skin above the liquid. Bring to a gentle simmer and cover.
Bake covered. Cook in the oven for 45 minutes.
Add leeks. Stir the leeks in around the chicken and bake uncovered for 20 minutes, until the sauce has thickened and the thickest part of a thigh reads at least 75°C.
Rest and serve. Rest for 5 minutes, skim off any fat and remove the thyme stalks and bay leaf. Season to taste, sprinkle with parsley and serve.