Improve thread spawning behavior

fixes #7186