mbox: Fixed getting filesystem permissions when parent dir has setgid-bit enabled.
mbox: Fixed getting filesystem permissions when parent dir has setgid-bit enabled.

jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot