add mutex locking to NodeHash
remove two unused variable warnings