Pass Windows interrupt event to kernels as an environment variable

This allows third party kernels to use our interrupt mechanism on
Windows.

Closes gh-5840
Merge pull request #5845 from takluyver/windows-interrupt-envvar

Pass Windows interrupt event to kernels as an environment variable