Backport: Threadpool: Always call initialize/finalizeThread

Backport of !584 (merged) for feature release 2.1

Merge request reports

Loading