Prevents access to the session from another thread.
procedure Lock;
Description
Lock is a procedure used protect access to the properties and methods of the HTTP session in a multi-threaded application. Lock enters a TCriticalSection for the current thread to prevent modification of the HTTP session from another thread.