REPORTS-147 - added locking to dependent tasks