add and commit file when read-only is turn on

With this, when one use toggle on read only, git-annex.el will check if the current file is own by git-annex, and add and commit it if this is the case.