sparse: make some variables static
When compiling with Sparse enabled:
$ CC=cgcc meson builddir
Fix warnings about variables that should be made static.
Sparse returns a long list of warnings, but I think that are false positives. I'd appreciate an extra pair of eyes just in case I missed an issue.