patch when file locking is not supported