Remove some deadlocks and infinity event loops.
- solve deadlock when using MFC through using SendNotifyMessage()
- solve the infinity loop in deadline-timer handler
- remove struct T_hide_me as rudiment
- some other fixes