fix compile in ule
fixup test helper
Remove a malloc from the cursor create path. Temporary, read-only
cursors are now malloc-free. This contains a backwards-breaking change
to db.h (since the cursor create API changed)