respect default-directory when creating and following xrefs
create and follow xrefs in log buffers too

Only do so in `magit-log-mode' and `magit-reflog-mode'
buffers; in `magit-log-select-mode' buffers don't do so.