magit-mode-setup: fix scope issue when evaluating buffer form