smb3: fix incorrect mode displayed for read-only files