Avoid recycling CL segments until all writes have been flushed for all keyspaces in segment

Patch by belliottsmith; reviewed by tjake for CASSANDRA-7437
Merge branch 'cassandra-2.1.0' into cassandra-2.1