Unregister stdio filenos from descriptor map, so they don't leak.

Fixes #2333.
Merge branch 'test-fix-2333' into jruby-1_7