Call inSession->close() at the end of VHttpProxyOutInThread::run()
Declare numLock and lockCs as "static"