Add thread locking to the generic table artifact chunker.