Factor out check_same_dev_ino() from check_same_stat() so it can be called separately.