CheckDlgButton: import safely

The call to CheckDlgButton must be 'safe' as it sends a BM_SETCHECK message to the button control, which will be handled by the calling application's window procedure (if it has one) while in the call to CheckDlgButton.  This may trigger Haskell code to be called before the foreign function returns.