Fix mis-partitioned transaction response.

SPI must be the last thing to deserialize, it will take the rest of the buffer
as parameter bytes. Anything that comes after it will get incorrect position.

Also serialize the client response in mis-partitioned txn response.