Add Threads::Task::joinable().

The function verifies that one can call Threads::Task::join() in the
same way as one can do with std::thread::joinable() in C++11.
Add test.