Employing the mechanism from the answer at https://unix.stackexchange.com/a/274499/5132 in the Z shell:
(
flock -x 200
echo "test";
) 200>mylockfile2
returns
zsh: parse error near `200'
While in bash it works correctly. What may be the issue here?