Eric Hosmer homered off Giants closer Hunter Strickland with two outs in the ninth