Tanzania canceled 40 mining exploration licenses and put another 43 license holders on notice in a government crackdown designed to make the mining sector more inclusive and sustainable.