small fix

"LockTaskData" sections need to be rewrite for less contention.
maybe a solution is make copy of needed data at the begining ...