Fix a hang in LSM compact. Refs #1225