Lacquer then fretwork. You'll clean the lacquer off the frets at the same time you're doing the fretwork. Otherwise you'll get the frets polished, get them covered in lacquer, then have to scrape and polish the frets again.