Fix connection fetch in executor wrapper to support transaction context for advisory locks and timeouts