Use the default cache size in test/thread: 5MB causes odd side effects that make the test slow, particularly with valgrind.