patch 8.2.0402: setting local instead of global flag

Problem:    Setting local instead of global flag.
Solution:   Prepend "g:" to "test_is_flaky".
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 14863f9..8ea708a 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -25,7 +25,7 @@
   let testfile = 'failed/' . a:filename . '.dump'
 
   " Starting a terminal to make a screendump is always considered flaky.
-  let test_is_flaky = 1
+  let g:test_is_flaky = 1
 
   " Redraw to execute the code that updates the screen.  Otherwise we get the
   " text and attributes only from the internal buffer.