I usually just used a cable lock through the frame of the trailer and the rear triangle of the bicycle.
It's definitely a 'keep people honest' kinda thing, and I'm not sure it is entirely necessary. I'm guessing that most people who just want a quick ride off wouldn't want to deal with unhitching a trailer, and professional thieves would not be interested in the kinds of bikes I use to pull a trailer.