Fix threads not properly locking _chunks
Slight multithreading modification