Physlock
From wikinotes
physlock is a tool that locks all linux consoles.
the screen will be blanked, Xorg/Wayland hidden behind a TTY login prompt for the root user.
Documentation
github https://github.com/xyb3rt/physlock
Usage
physlock # return to TTY, prompt for root password # logging in returns to your user session