Adds spec for opening pipes in write mode via Kernel#open

Fails on JRuby 1.7.0.preview1, demonstrating this bug: https://jira.codehaus.org/browse/JRUBY-6677