xapian-bridge C port

endlessm/eos-sdk#2463
The JS code explained the rationale for this in a comment: namely, that empty databases cause problems with `XapianEnquire`. Consider including that explanation here.