Keep in mind too that there is more than a little risk for any camera manufacturer who would completely shut out third-party lens makers.
They'd have to consider the ill-will they'd be generating among their best customers, since those who buy third-party lenses are also the ones with the discretionary income to buy Canon lenses and Canon cameras. Is it really worth it to antagonize those customers?
Canon doesn't operate a monopoly. If they make it impossible to use third-party lenses, that will only drive customers to Nikon. Right now, the two companies compete relentlessly over insignificant differences in their products. Ceding the third-party compatibility issue to the other side would be handing them a massive competitive advantage.
Shutting out Sigma, Tokina or Tamron would also mean shutting out Zeiss. Granted, it's a very small market, but I don't think either Canon nor Nikon would want to hand over these high-end luxury buyers to the other side.
Yes, I can see Canon and Nikon engineering new features into their lenses and trying to keep those features from being accessible by third party lenses, but that's a far different case than completely shutting out a competitor's lenses.