They already require periodic resigning of self-signed side-loaded apps on iOS, it doesn't stop even relatively casual users.
(That's actually the funniest part about all this, now that I think about it. While everyone is wailing and gnashing their teeth about some speculative possibility that macOS ends up locked down like iOS, Apple has been making iOS more open.)