Fixed thread locals in SystemStreamRedirector