added "or clause" to thread::get_id to address case where the thread object does not represent a thread of execution