Implement Task::AsyncWaitHandle. Fixes #12342