Fix race condition if multiple threads delete the same HTTP host