GenFFT add multi-thread safty for FFTW