xapian-bridge C port

endlessm/eos-sdk#2463
Should use a uniquely-named directory - if a test somehow is interrupted before reaching `teardown` (as it will be if an assertion fails) then the directory will not be cleaned out.