Fix file locking on build.