YARN-2534. FairScheduler: Potential integer overflow calculating totalMaxShare. (Zhihai Xu via kasha)

(cherry picked from commit c11ada5ea6d17321626e5a9a4152ff857d03aee2)