I don't know about SFO, but you can avoid the scanners in DFW by dropping your checked bags off to AA once you clear customers, then walking out of Terminal D then to one of the other terminals and passing TSA there. Then you can take the train to whatever gate you need. The question is, do you have enough time to do all of this?