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

Patch by belliottsmith; reviewed by tjake for CASSANDRA-7437