Calling SQLFreeEnv

Note that SQLFreeEnv must not be called directly or indirectly from the Windows DllMain function. The calls that can be made from DllMain are limited, and in particular attempting to communicate with other threads (which SQLFreeEnv may do) can cause the application to hang.