DRILL-1092: Fix external sort to spill only if number of records exceeds threshold.