Fixed unprotected multi-threaded memory accesses.