I once had a small flock of chickens, they were a hybrid with some Surinamese jungle fowl, jet black and as small as pigeons. They cheeped rather than squawking. They never laid any eggs, and were eventually all eaten by raccoons.
Anyway, one day I looked out the window and they had all frozen solid, like someone hit them with a "time stop" spell. So the capability is obviously a defensive adaptation.[0] Why it can be triggered by the given techniques is a bit mysterious though.
In humans though you can interrupt motor patterns and get hypnotic trance. The search term is "handshake interrupt", there are videos. I went to a hypnotherapist who used it with me, and I started cracking up because I recognized what was happening and almost wrecked it, but then I made a conscious decision to "go with it". (It's weird how many "levels" there are in the psyche: who was going into trance? who was cracking up? who decided to go with it? who was it that went into trance? "A trance is only as deep as you are." is a powerful spell to break out of trance. Why does it work?)
Be advised that there are roving gangs of hypnotists warring in the streets for your attention.
[0] It works too. A friend of mine and I were climbing the scree below a cliff when we came across a mother brown eagle and her nest. She spread her wings to cover the nest and froze. She was so still that even though I was staring right at her from about thirty feet away, with my binocular color-vision eyes and human brain, I still could barely see her.
We left her in peace.