[sr-dev] [kamailio] fix race condition in tls module when checking available memory limits (#126)