Count retries on client.executeAsPrepared.

More unit tests:
- On executeAsPrepared max retries
- On socket error parallel execution