[mypyc] Fix multi-file linker error on macOS (#7730)
Final variables were being declared twice, once via HeaderDeclaration
and once manually. Get rid of the manual one and always go through
HeaderDeclaration.
Additionally avoid emitting a definition and a non-extern declaration for
the same objects.
Fixes mypyc/mypyc#703.