Ensure that LAST ID gets called on the same connection of the pool.

[Fixes #61005058]