using the file lock to guard two processes, everything finished and ready for integration test