(nnimap-get-flags): Use the same marks parsing code as the rest of nnimap.