guard access of umask with global lock