After some last updates I have more 5 times per day suddenly reboot with error "keyguard is not shown in 20000 ms" of system_server when changing profiles. But in general it happens without another processes like apps optimizing.
But if app optimizing in process, it means 100% reboot when try to load secondary profile.