Do not use goroutines when threads are set to 1

Fixes #7