YARN-2826. Fixed user-groups mappings' refresh bug caused by YARN-2826. Contributed by Wangda Tan.

(cherry picked from commit df36edf751202db00d8f43103d7120ec56d70a04)