Reliever's three-inning stint in Game 4 proves pivotal in Giants' comeback win