Fix: Add missing locks.