Race condition while file locking has been fixed