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