HADOOP-10852 Fix thread safety issues in NetgroupCache. (Benoy Antony)