s4-ldb: expose ltdb_err_map and ltdb_delete_noindex