YARN-2701. Potential race condition in startLocalizer when using LinuxContainerExecutor. Contributed by Xuan Gong
(cherry picked from commit 2839365f230165222f63129979ea82ada79ec56e)
Missing file for YARN-2701
(cherry picked from commit 4fa1fb3193bf39fcb1bd7f8f8391a78f69c3c302)