[threadpool] Fix race condition on threads variable cleanup
Merge branch 'master' of http://github.com/mono/mono