Add Threads::Task::joinable()

I will need this function for a later patch I'm planning.