[PD-dev] thread locks for arrays