Add operation lock.