fix `magit-refresh-buffer`s most pressing issues