notmuch_message_get_message_id: Fix to cache result