ldb: Rework index_transaction_cache_size to allow caller to specify a larger size