Add missing locks in TestBus