xapian-bridge C port

endlessm/eos-sdk#2463
That's what I was thinking of. It would be an easy trap to fall into, since we do use `g_clear_error()` elsewhere.