As Turkey successfully foils the coup, Erdogan must desist from taking harsh measures against the plotters and their allies