cifs: guard against hardlinking directories