Chris O'Grady scored the winning spot-kick as Barnsley edged Scunthorpe 5-4 on penalties after a 0-0 draw at Oakwell.