GfxState: Move vars inside the ifdef they are used in

6 jobs for minor_ifdef_var_fix in 12 minutes and 13 seconds (queued for 32 seconds)
Status Job ID Name Coverage
  Build
passed #522286
build

00:03:14

passed #522291
build_android

00:01:05

passed #522287
build_clang_libcpp

00:02:57

passed #522290
build_clazy

00:02:49

passed #522289
build_mingw64_fedora

00:08:26

passed #522288
build_ubuntu_16_04

00:01:54