Data obtained by The Associated Press shows that tens of thousands of similar safety defects were found when government inspectors checked the rail lines used to haul volatile crude oil across the country.