[PATCH v2 1/6] lib/cli: Make notmuch_database_open return a status code