Fix root deadlock.

See also cms-sw/root#7.