It works well because it's scheduled and after going a couple times you know how long you have until any given person or group has to leave. Just get to the waiting room early, sit in the back, then start striking up conversations as people who fit your demographic file in.
I've found people are more willing to chat at jury duty than the DMV. At the DMV they typically have some (misguided) hope of getting out of there quickly. At jury duty there is no hope. There's just a sort of quiet resignation that they'll be there all day (or maybe even all week).
Also, there's usually other stuff going on in a courthouse aside from jury duty. For example, there's family law and other offices that you could say you have an appointment there. The key is to just look respectable (clean haircut, nice clothes, nice watch) and confidently state where you're headed. Besides, it's a public building, it's not like it's some secured facility that's illegal to enter.
If you're unsure just google your local courthouse and see if there's anywhere to make appointments, or at the very least see which offices are in there. Then go to the courthouse and if they ask for a reason say you're there to visit soandso (the name/office you got on the website). The worse they can say is no.
Jury Duty = judges and lawyers and important people, so restricted access
DMV = only peons work there, so you can walk right in