Avoid a race when updating the shared table of transaction IDs and calculating the oldest active transaction ID.