The Maldives has canceled a 2015 law that allowed foreigners to own land in the tropical islands, a move the government said addressed concerns about potential loss of sovereignty.