My problem is not with device lock, but with installations: everytime (almost) I install a package, when it finishes installing all apps shut down and this is quite annoying... This is also a problem while installing for example unrestricted system ui or using n9qtweak