fix tc_streamSend test on jRuby

jRuby needs the tmp file to be explicitly closed