enforce error threshold at the end of reading a split

enforce error threshold at the end of reading a split. This avoids spurious triggers where a split contains a few bad records early in the split, rather than at the end.

Though not usually required, it can be disabled by setting
"elephantbird.mapred.input.bad.record.check.only.in.close" to "false"