add file_lock module so that files are treated politely