The fix for concurrent issue with LocalizedXStream (not thread safe)

This is the fix for multi-thread issues that causes concurrent runs of cucumber tests fail.