file: prevent replace failure when overwriting empty directory with hard/link (force=yes)