A double nut will be perfectly safe. Torque one flat nut to spec, then torque another flat nut on top of it.
FYI, the Baer bump steer correction kit, which replaces the outer tie rod end, uses no castle nut/cotter pin setup. It uses only a press fit stud through the spindle, and a nyloc nut...