fix locking in robots processing