res_pjsip_transport_websocket: Fix a progressive memory growth.