Fix LookupTupleHashEntryHash() pipeline-stall issue.
Refactor hash lookups in nodeAgg.c to improve performance.
Author: Andres Freund and Jeff Davis
Discussion: https://postgr.es/m/
20200612213715.op4ye4q7gktqvpuo%40alap3.anarazel.de
Backpatch-through: 13