Speed up the debug logging in SofQW3

It now accumulates the debug messages and logs per spectrum rather
than calling the logger for every spectrum & bin.
Refs #9971