test_threading_local: add missing "import sys" (GH-8049)

1 file changed