TST: join fft threads before getting values

avoids timeouts on slow machines
Merge pull request #5035 from juliantaylor/fft-test

TST: join fft threads before getting values