Fixed nn_device shutdown on Windows

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>