copy threading model when copying a global to another llvm module

this gets parallel-with-GC working much better.

always apply max threads limit
Merge branch 'kpamnany-multithreading' of github.com:JuliaLang/julia into kpamnany-multithreading