use Hash::Util to lock hashes