Fix write lock.