Short version: Don’t do anything with your Mac while it’s running through the “Optimizing System Performance” phase of a software update. I always run my software updates after a fresh login, with no apps running other than the Finder.