Properly handle GetDC and ReleaseDC locking
Implement GetDC and ReleaseDC for GDI drawing