Parent/child: Reduce memory usage in top children query

Closes https://github.com/elasticsearch/elasticsearch/issues/8160