imap: uid indexes are highly inneficient
The method used for getting next UID is highly inneficient. If will eval a ever-growing list. Need to implement a UID counter as a specialized field in the soledad document for metadata (per mailbox).
(from redmine: created on 2013-11-28, closed on 2013-12-23, relates #4607 (closed))