... consider an aircraft with a TAS that is exactly the same speed of the headwind.
Pardon the question, but: which headwind? For an aircraft in flight there is no such thing as a headwind (or wind from any other direction), these only apply with reference to the ground. And shutting down the engine will make the aircraft descend in the same manner regardless of any wind (and its speed and/or direction).