Protect the metadata with a read lock