General,
Yep, any time you are bringing out detail in the target, whether that be saturation, sharpening, structure enhancement, etc, you should be masking the background, both in the linear stage and after stretching. This gets more complicated with lots of nebulosity, but it is still important to protect the areas you are not trying to enhance. And with some techniques, such as sharpening, you really want to build a combined mask that protects both the background and the stars and isolate only the target. Best way to do that is with pixelmath.
Masks are your friend, learn them, use them.
And Mike, thanks for handling. I would have handed off to you anyway since you get all the credit for that great technique.
Best,
Jim