YARN-1922. Fixed NodeManager to kill process-trees correctly in the presence of races between the launch and the stop-container call and when root processes crash. Contributed by Billie Rinaldi.

(cherry picked from commit c5a46d4c8ca236ff641a309f256bbbdf4dd56db5)