better multi-threaded hashing
fix race condition