Pocket mode in ZF9 works in such a way that it will block the ability to enter commands using the touch layer of the screen when the phone is locked. Unfortunately, it does not block the fingerprint scanner and the power button. This causes touching the fingerprint scanner to unlock the device and deactivate pocket mode.
A certain workaround is to disable fingerprint unlock - which will require you to press the button, not just touch it.