Use Macbook Touch ID button to sleep/lock
This is not possible.

From this Apple Support page:


  Pressing Touch ID won't put your Mac to sleep. Instead, choose Apple
  menu > Sleep. You can also add a Sleep button to the Control Strip in
  the Touch Bar: Select View > Customize Touch Bar.