Fix race condition in HTreeMap, dir data were not immutable