YARN-1959. Fix headroom calculation in FairScheduler. (Anubhav Dhoot via kasha)

(cherry picked from commit 568d3dc2bbe43b7d2833d5da2b0e6d75eb86e5dd)