Fix undo history wrongfully restored in some cases
slotDelayedHandleModOnHd updates the checksum on external modification. By the time we get the message that our file was modified, the checksum is already updated and undo manager thinks we can restore history resulting in some really weird undo issues afterwards.