During the three weeks before Lion Air Flight 610 plunged into waters off Indonesia, Southwest Airlines replaced two malfunctioning flight-control sensors of the same type that has been publicly implicated in the crash, according to a summary of Southwest maintenance records reviewed by The Wall Street Journal.