Medical schools are exploring ways to shrink students’ loan burden, hoping to remove a key driver of provider shortages in certain disciplines and regions.