[WIN32] fixed: first process OnSleep events before going into suspend (fixes #14101)