Dear @broncox
Thank you for your post.
Unfortunately, this option is only avaible on Win OS.
On Mac OS you could set the option via TeamViewer toolbar. Please go to Actions --> Lock Computer --> Lock on session end
Cheers
Reyhan