All metadata access methods now acquire a lock on `m_metadata_lock` to prevent race conditions.
std::fill
std::fill_n