magit-mode: call hack-dir-local-variables-non-file-buffer
define the more important major-mode hooks explicitly
magit-mode-hook: offer bug-reference-mode as an option