A Giants player set a new MLB record with a 21-pitch, 13-minute at-bat that included 16 foul balls — and it ended in a routine fly ball