IME, this is one of the busiest times of day at SFO. Your problem will be if you get held up in Passport Control. The lines can be quite long. You dont have much time between your flight. Hopefully, your flight from LHR will arrive on time and you will get through the line quickly.