Fix (hopefully) for thread support of http.server and its tests