Fix stubs for locking