Allow threads for FFT calculations

This patch adds lines to release the Global Interpreter Lock
while calculating an FFT with fftpack.