Fix for #4655: Make fftpack._raw_fft threadsafe