Fix race condition when ext/hash/tests run in parallel