Bugfix: permute() etc grouped w/ progress thread code

Accidentally declared inside of ENABLE_PROGRESS_THREAD conditional
block