pgstat: separate "xact level" handling out of relation specific functions.
This is in preparation of a later commit moving relation stats handling into
its own file.
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/
20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de