Deadlock with fftw, shared libs and Windows

This sounds pretty much like the thread pool destructor deadlock bug from last month.