Fix problems with reopening an LSM tree: don't set the primary chunk until we have a valid in-memory chunk ready for updates.