Fix corn worker so that it gets the lock