There are much better products for such situations than WD40. WD40 is a water dispersant not a lubricant or rust penetrator.
There are also other methods of sorted corroded threads.
Like i said, they will know much better than you.
Stop worrying over nothing.