Kyle Meyer writes:
The buffer-local value doesn't continue to shadow the global value when org-archive-subtree sets the buffer to the archive file.
Thanks, Kyle! That is the reason. Setting the local variable in the archive file as well does the trick.
-- Jorge.