YARN-2594. Potential deadlock in RM when querying ApplicationResourceUsageReport. (Wangda Tan via kasha)

(cherry picked from commit 14d60dadc25b044a2887bf912ba5872367f2dffb)