notmuch: Fix notmuch_database_open call after notmuch 5fddc07d

This lets us also report a slightly more useful error for some failures.