use with-silent-modifications

instead of the `magit-with-silent-modifications'
alias which is no longer defined in magit.