When given treats, what are they for? Are they given in an effort to quiet him down? If so, then the timing is wrong, he's being reinforced for growling. Or, he had a bad experience with strangers before. Or missed some socialization. These can all be addressed by reinforcing him in calm states...