Preheat oven to 375°F.
Heat a skillet over medium-low and add the butter to foam. Add onions, season with salt and pepper, and add bay and thyme. Caramelize onions about 30 minutes then deglaze the onions with sherry. Add stock and let reduce until just a few spoonfuls of stock remain; keep warm.