dirstatemap: use a common implement for set_tracked
Same logic as for `set_untracked` this make sure both implementation use the
same logic for this.
Differential Revision: https://phab.mercurial-scm.org/D11574
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.