Sets the umask for the process and returns the old one. If EXPR is omitted, merely returns current umask.