Keep affinity of threadpool threads the same as the main thread on entry Closes #846 See merge request !1686