When you say valence shell, you have to pay careful attention to the word valence.
What does valence mean? Wikipedia says a bit about it's etymology:
"The etymology of the word "valence" traces back to 1425, meaning "extract, preparation", from Latin valentia "strength, capacity", from the earlier valor "worth, value", and the chemical meaning referring to the "combining power of an element" is recorded from 1884, from German "Valenz".
Clearly, valence refers to the combining power of the element.
Which shell decides the combining power of an element? The $(n+1)s$ or $nd$ subshell? To further prove my point, consider these examples:
- Iron has its most prominent oxidation states (valencies) are +2 and +3. The respective electronic configurations are $\ce{[Ar]}3d^6 4s^0$ and $\ce{[Ar]}3d^5 4s^0$. The $\ce{Fe^{3+}}$ is extra stable since it has a half filled $d$ subshell. Does the $s$ orbital play any role here? Absolutely not.
- In acidic medium, the permanganate ion ($\ce{MnO4^-}$) is a powerful oxidizing agent, reducing itself to $\ce{Mn^{2+}}$. Why $\ce{Mn^{2+}}$? Recall that it's electronic configuration is also $\ce{[Ar]}3d^5 4s^0$. Is it because of the $s$ shell? Think carefully.
While you may have heard that valence shell means the outermost shell, it's not always the case, and never the case in transition and inner transition metals.