Prepare the oven and dish. Heat the oven to 350°F. Lightly butter a 9 × 13-inch baking dish.
Cook the onion and garlic. Melt 4 tablespoons salted butter in a saucepan over medium heat. Cook the diced onion for 6-8 minutes, until soft and lightly golden. Add the 8 minced garlic cloves and cook for 30-60 seconds.
Make the cream sauce. Stir in the flour and cook for 1-2 minutes, stirring constantly. Gradually whisk in the milk, then the cream and chicken base. Simmer gently for 3-5 minutes, stirring, until the sauce coats a spoon. Cool to lukewarm.
Mix the filling. Mix the sauce with the sour cream, cheddar, ground mustard, onion powder, black pepper and cayenne. Add Morton kosher salt to taste. Fold in the shredded hash browns.
Assemble and bake. Spread the filling evenly in the buttered 9 × 13-inch dish. Bake at 350°F for 30 minutes, until the edges start to bubble.
Make the topping. While it bakes, coarsely crush the cornflakes and measure 3 cups. Melt 5 tablespoons salted butter in a light-colored skillet over medium heat and swirl until golden brown and nutty. Pour into a heatproof bowl, add 1 lightly crushed garlic clove and steep for 2 minutes. Remove the clove and toss the butter with the cornflakes.
Finish and serve. Scatter the topping over the casserole. Bake another 20-25 minutes at 350°F, until the topping is golden, the potatoes are tender and the center reaches 165°F. Rest for 10-15 minutes and finish with flaky salt.