Fix for deadlock on win32

Hi Crategus,

I think this is adequate for fixing under Windows for most implementations (tested myself with SBCL).