D-backs fumble away winning streak in San Francisco