Preheat your oven to 375°F and place the racks in the middle and top third positions. Prepare a 13x9 inch baking dish by spraying the bottom and sides with nonstick spray.
In a large nonstick pan, add your butter, onions, and ¼ teaspoon salt and cook over medium heat until the onions are softened and translucent, 4-5 minutes. Add garlic, dried thyme, and black pepper and cook for an additional 1 minute, until fragrant.
Sprinkle the flour over the onions and stir for 1 minute until the mixture looks pasty. Working quickly, stream in the wine, stirring vigorously to avoid clumps. Add in chicken stock and let it come to a boil, stirring occasionally. Stir in the cream cheese, stirring to make a smooth, thick sauce.
Add in the mushrooms and frozen peas, then slowly stir in the half and half and the remaining ½ teaspoon salt. Let the mixture come to a simmer, stirring occasionally. Continue cooking until mushrooms are cooked through (but not overcooked) and the mixture has reduced slightly and thickened so it coats the back of a spoon, about 5 minutes.
Remove from the heat and fold in turkey, cheese, parsley, and lemon juice until the cheese is melted. Then gently fold in the spaghetti. Stir together until evenly mixed.
To assemble, pour the mixture into your prepared baking dish, then top with the shredded cheese. Then, in a small bowl, stir together the breadcrumbs, Parmesan, and parsley, and sprinkle evenly on top of the casserole.
Place the pan on the middle rack and bake until the cheese is bubbly, 18-20 minutes.
Move the dish to the top third rack and continue baking until the topping is lightly browned, another 3-5 minutes.
Remove from the oven, let sit for 5 minutes, then serve immediately.