Make sure we set lastCompactedKey properly

Patch by marcuse; reviewed by rbranson for CASSANDRA-8463