[FIX] Composer (and Editor) could deadlock if a resource was auto-saved while a new one was loaded