don't pass address of function arg to another thread

When passing http request to new thread, copy socket fd to local cache
and pass cache address to dispatch function, rather than arg address.