Bryant led off ninth and 10th with doubles as San Fran overcame 4-0 deficit