Fix file db lock.