Threadpool: fix buffer size logic when pool is used without buffering
Resolves an issue in the ThreadPool when it used without a priority buffer. This caused stalls when the ThreadPool was used outside of the main event loop in the AP tools (for example mesh_converter).
Fixes https://github.com/allpix-squared/allpix-squared/issues/25.