Handle race condition for "UPDATE" with new files. Problem found by Sebastian Harl...