[capi-http] Fixed crashes in http_transaction_destroy & http_session_destroy