The pocket mode only prevents touches to the display itself, but if you touch the fingerprint sensor (without pressing the power button) it will still unlock the screen while in pocket.
In my case I accidentally unlock my phone quite often when sliding it into my pocket since my thumb touches the FP sensor
Edit: Just noticed there's a setting which changes the FP sensor behavior to only unlock when the power button is pressed