Fixes counter flush configuration issues during parallel tests
Cleaned up threading model and CassandraResource.