Ensured that transactionEnlistingCount is maintained properly to support
the snapshotting logic.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>