Melt butter in a saucepan over medium heat. Add mushrooms and cook until softened, about 4 minutes. Add garlic and thyme and cook until mushrooms are tender and most of the liquid has evaporated, 4 to 5 minutes. Reduce heat to medium-low. Stir in cream cheese and season with salt. Cook and stir until cream cheese has completely melted. Remove from heat.