Inheritable Thread Local/

If Surefire configured to run tests in parallel it use InheritableThreadLocal to maintain different streams for different threads.
Now  BackgroundStreamDumper sets inheritableThreadLocal before write to stream.