remove a lock, add some log.