Fix find with lock problem.