message: clean up getting the catalog from the catalog entry
diff: @@ -217,7 +217,12 @@ void CommitState::CommitEntry(UndoFlags type, data_ptr_t data) {
  // set the commit timestamp of the catalog entry to the given id
  auto catalog_entry = Load<CatalogEntry *>(data);
  D_ASSERT(catalog_entry->parent);
  - lock_guard<mutex> write_lock(catalog_entry->catalog->write_lock);
  +
  + auto &catalog = catalog_entry->catalog;
  + D_ASSERT(catalog);
  +
  + // Grab a write lock on the catalog
  + lock_guard<mutex> write_lock(catalog->write_lock);
  catalog_entry->set->UpdateTimestamp(catalog_entry->parent, commit_id);
  if (catalog_entry->name != catalog_entry->parent->name) {
  catalog_entry->set->UpdateTimestamp(catalog_entry, commit_id);
  