salted butter
small white onion, peeled and thinly sliced
garlic cloves, minced
all-purpose flour
vegetable stock
heavy cream
black pepper
fresh thyme leaves, divided
yukon gold potatoes, sliced into 1/8-inch rounds
shredded sharp cheddar cheese, divided
freshly-grated parmesan cheese, divided