added lock to copyPartFrom function in TComDataCU.cpp