Removed redundant tasks locking after discussion.