xapian-bridge C port

endlessm/eos-sdk#2463
If C were a language where the amount of boilerplate for each test didn't make me want to gnaw my elbows off, then I'd suggest splitting this into two tests: `has_db` returns TRUE for an existing database, and `has_db` returns FALSE for a nonexistent database.