Fix #183: Add Thread.currentThread() to support Future.flatMap.

Trivial implementation of `Thread.currentThread()` to make `Future.flatMap` happy.