Fixed deadlock problem with UnionFuture/AsyncFuture.