Fix a crash when undoing with DefaultTool active
DefaultTool::updateActions() might be executed in the gui thread when the layer has gone through changes in the image thread. Old shapes might have already be deleted, which causes use-after-free. We fixed this by locking the shape layer canvas in updateActions().
Showing with 39 additions and 35 deletions