set PAM_TTY to the to-be-session-TTY

Change-Id: Ibf3a60ca61f22d9cfef39eba8196036cd0c4d3e0