Here's a link from a thread about demodex in a boxer who was scheduled to be spayed:
Demodex - How do you know it's gone and OK to Spay? - Boxer Board
One person suggested that surgery might weaken the dog and make the demodex spread more extensively and aggressively. Definitely something you want to ask the vet about.