I'd really try to get to SFO on an earlier flight. Although it's an easy walk if you don't wait for the bus, and I've never had a long wait to get through international security, UA seems to like to close their Asian flight boarding early, whenever they can.