ISPN-2786 Remove marshalling thread local leak and add test

https://issues.jboss.org/browse/ISPN-2786