YARN-8990. Fix fair scheduler race condition in app submit and queue cleanup. (Contributed by Wilfred Spiegelenburg)

(cherry picked from commit 524a7523c427b55273133078898ae3535897bada)
3 files changed