Multithreading fixes for TROOT from Philippe.
Merge pull request #51 from ktf/fix-root

Multithreading fixes for TROOT from Philippe.