built-in add -i: re-implement `add-untracked` in C