Add a spec around using custom Thread methods

Currently JRuby 1.7.4-dev fails this test, it should be necessary for writing sane code. 
We have plans to embrace these methods, having support in JRuby would be good. 

Somewhat related to http://jira.codehaus.org/browse/JRUBY-7081