If the compilation symbol THREADSAFE (LContLib.inc) is defined, this class provides EnterCriticalSection function to protect code in a Critical Section. The function retuen an interface and when this interface is released (RefCount = 0) the critical section is relased too.