ldb tests: add cmocka tests of kv operation interactions with transactions