Yeah, but he makes a fair point about supper middle class types using force of law to protect their interests. I doubt Adam Smith would approve of dentists using licensing to protect themselves from teeth whitening entrepreneurs.
I suspect you are right about the dentists, but I think Adam would have strongly supported the whole NIMBY attitude. If we have to lower the value of land, it costs us less to lower the value of cheap land instead of expensive land.