Fixing buffer leaks in SockJS transports.

[https://issues.jboss.org/browse/AGSMPLPUSH-51]