How many do you need to program? For just one, get an SOT23-6 breakout board and do as you suggest. You might also be able to use micro-grabbers. You need to keep the leads short (6" or so).
If you are doing a lot of them, then there are "burn in" sockets. I use the 3M Textool versions. There are cheaper Chinese versions.