Pushed down locking of the task artifacts cache.