[[ Cocoa ]] Added lock/unlock screen to MCStack::close to ensure no updates are seen until the window is closed.