Add flag indicating whether handle was acquired from a task

To keep the get_handle() method const the flag has to be marked mutable
but should get_handle() be const (e.g. std::packaged_task::get_future()
is not).