Redmine#4791: mask out S_IFMT (file types) from body perms mode as per POSIX 2001