Slow Login and App switching after Migration to NC12

This is due to our locking. Maybe @icewind can have a look if this is all needed, but I guess so. :confused: