Tightened lock on task count property