Make task_wait_handle copyable