MFC r368735: Fix a race in tty_signal_sessleader() with unlocked read of s_leader.
(cherry picked from commit 551e205f6dfa469f4f32a166ee3fb691201d27a7)