IsDlgButtonChecked: import safely

The call to IsDlgButtonChecked must be 'safe' as it sends a BM_GETCHECK 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 IsDlgButtonChecked.  This may trigger Haskell code to be called before the foreign function returns.