Add compatibility Thread implementation.

This adds an implementation of `Thread` which only reports itself as
the current thread, and does not allow creation of new threads.

However, it supports the fiber- and thread-local variable storage
interface, which means code that does not actually manipulate threads,
but tries to be a good citizen in the face of concurrency can work
without modification (e.g., `Thread.current[:var]`).