FTF-499: use file lock to ensure synchronization