How to turnoff screen / lock Macbook Pro with touch bar using keyboard?
you can add the sleep function to the touch bar through system preferences > keyboard > customize control strip and then drag the sleep icon to the touch bar, allowing you to put it to sleep by pressing 1 button.