Proper AsyncHttpClient runtime handling in SerializedSocket. (backport
from master)