xapian-bridge C port

endlessm/eos-sdk#2463
Not sure the name of this test is very descriptive. How about something like `test_cache_dir_is_readable`?