lib/ldb: Fix incorrect return type for (setter) func type