Fix prepared statement for protocol v2

patch by slebresne; reviewed by iamaleksey for CASSANDRA-6035