Coming back to this one after quite long time ...
So I just tried to reproduce based on your minimal config and current master branch. I had to increase the size of PKG memory (-M 12), but then all was fine -- the content of `/tmp/big_htable.data` had all 30k records (based on number of lines printed there and the closing of the json document was ok). No error was printed by kamailio.