Preheat the oven to 400°F (200°C). Cut the top off the two whole garlic heads, drizzle with 1 tablespoon of olive oil, and wrap tightly in aluminum foil. Roast for 40 minutes until soft.
While the garlic roasts, place the potatoes in a large pot and cover with cold water. Bring to a boil and cook for 20 minutes until tender. Drain the potatoes and return them to the warm pot.
Squeeze the roasted garlic cloves out of their skins into the potatoes. Add the warm heavy cream and 3 tablespoons of butter. Mash until smooth, then season with salt and pepper to taste. Keep warm.
Lower the oven temperature to 350°F (175°C). Pat the chicken thighs dry, season with salt and pepper, and toss with the flour to coat evenly.
Heat 1 tablespoon of olive oil in a large oven-safe skillet over medium-high heat. Sear the chicken skin-side down for 3 minutes until browned. Flip and sear for 2 more minutes, then transfer the chicken to a plate.
Add the chopped bacon to the skillet and cook for 3 minutes until crisp. Remove the bacon with a slotted spoon and drain most of the grease, leaving about 1 tablespoon in the pan.
Lower the heat to medium. Add the minced garlic, shallots, and thyme sprigs. Cook for 2 minutes until soft. Stir in the apple cider and Dijon mustard, scraping up any browned bits from the bottom of the pan.
Return the chicken and bacon to the skillet along with the apple wedges. Transfer the skillet to the oven and bake for 35 to 40 minutes, or until an instant-read thermometer inserted into the thickest part of the chicken reads 165°F (74°C).
Remove the skillet from the oven and transfer the chicken to a plate. Place the skillet over medium heat, stir in the remaining 2 tablespoons of butter, and simmer for 10 minutes to thicken the sauce. Serve the chicken and sauce over the mashed potatoes.