Update LSM compact to avoid a hang.

Only wait for the newest chunk that is present when a compact is
started to be flushed before moving onto the merge phase. Otherwise
workloads that compact while updating in parallel can wait forever for
compact to finish.

Refs #1225