Fix race condition when fetching meta profile that causes more than one instance to be initialized for an entity