write lock file in /output