YARN-853. Fixed CapacityScheduler's maximum-am-resource-percent to properly work beyond refreshing queues. Contributed by Devaraj K. svn merge --ignore-ancestry -c 1505855 ../../trunk/