The env var is not published to the sshd and sftp-server processes:
That was my mistake... PermitUserEnvironment is disabled by default.
https://github.com/openssh/openssh-portable/blob/master/sshd_config#L94