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
Merge branch 'bugfix/9971_sofw_crash_debug_log' into develop