JAMES-2037 CassandraMessageMapper::listAllMessageUids should not rely on ComposedMessageIdWithMetaData

This avoids unneeded objects instantiation and empowers memory footprint optimization for IMAP SELECT,
both at the driver level & db level (avoids transmitting all information, rows are smaller) and both
at the applicative level (avoids a flag extraction, avoid MODSEQ-MailboxId-MessageId-ComposedMessageId-
ComposedMessageIdWithMetaData instantiation)

As a record, for a SELECT on 160.000 messages mailbox, the allocated memory is 519 MB so almost 3,6 KB per message, putting pressure on both the heap and garbage collection.
3 files changed