Thread additions, Mutex and Queue

Thread.list reports itself as the current thread, and Thread#new
explicitly disallows creation of threads.

Thread now supports the fiber- and thread-local variable storage
interface

Mutex and Queue are implemented, and behave as expected, given the
single-threaded environment.
Merge pull request #533 from mieko/thread_shim

Add compatibility Thread, Queue and Mutex implementation.