New API: get-umask, returns the current umask (RHBZ#582891).