Make folly::AsyncIO thread safe