Fix diff buffer erasing

When 'diff-default-read-only' is t, diff buffers must be made
writeable before changing their contents.

(Reported by Jinseop Kim)