Fix issues with native stream IDs

Patch taken from:
http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/issues/detail?id=34