Fix race between cassandra startup and thrift being ready