Additional thread safety fixes.

See also cms-sw/root#34.
Merge pull request #1104 from degano/root_thread_fixes_73XNext

Additional thread safety fixes.