Deadlock in NLog library using Control-Target (WinForms)

Fixed line endings of earlier pull request. This commit fixes a deadlock in the NLog library by using BeginInvoke. There was a similar issue with RichTextBox-Target with the same solution. I'm successfully use this fix since about two months.