You can use a third part app from the Play Store to create a widget on your home screen to lock your phone. Another option could be using a custom launcher, like Nova, and set a gesture for this action.
I moved your thread to the S8 & S8+ fórum for better visibility.