dirstatemap: use a common implement for set_tracked...
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