other8026 FYI, there is but it comes with some Android annoying downsides.
Device-owner apps can do that, https://github.com/BinTianqi/OwnDroid is the one I use. Restrictions however are that Work Profiles are unavailable and Private Spaces are either unavailable or wiped after reboot.
Owndroid has an option from Owner to disable logout anywhere for all secondary users (except reboot obviously).