The U.S. Navy Thursday said it was canceling a widely criticized Lockheed Martin Corp. contract to build a next-generation combat…