I think the time Dick tells himself to 'think clean thoughts' comes from the Nightwing Annual 02, rather than Batgirl: YO, when they are locked together in a safe. I posted it here a few weeks ago - warning, link is image heavy. Just scroll through, you'll get it eventually XD