Additional thread safety fixes for root.

See also cms-sw/root#33.
Merge pull request #1102 from degano/root_thread_fixes_73X

Additional thread safety fixes for root.