ja: keep backward compatible for Groonga 4.0.0 or older DB
ja: fix a memory leak on truncate
Merge pull request #156 from groonga/ja-backward-compatible

ja: keep backward compatible for Groonga 4.0.0 or older DB