AI has created a booming new side hustle for lawyers: training the systems that could one day take over their work.