It doesn't seem like a locution to me; It is just a dog trained as a guard, just as there are sheepdogs, guide dogs or companion dogs.
A guard dog is a dog that is trained to guard or protect something or someone.