Lock hotkey's loop thread for win32api