The smartwatches I've owned with payments support (Pixel Watch series) automatically lock when they are not worn, presumably using the heart-rate sensor.