magit-edit-log.el: define keymap before mode

Otherwise the variable would already be bound once the
defvar is evaluated causing it not to do anything.