Patriots nearly lost Devin McCourty to higher offer