Setting `init_mode` did not solve the problem for me. During production load today, we still got many `ser_free` double free reports. Kamailio does not crash everytime there is this error in the logs, sometimes after 7 or 8 occurrences (over 15 minutes or so).
I'll try to set `tls_threads_mode`.