Licensing began with medicine and law; now it extends to 20 percent of the U.S. workforce, including hair stylists and auctioneers. In a new book, the legal scholar Rebecca Allensworth calls licensing boards “a thicket of self-dealing and ineptitude” and says they keep bad workers in their jobs and good ones out — while failing to protect the public.