Niners reward Willis with 5-year extension