Bumgarner's single in 12th lifts Giants past Padres 5-4