[SSHD-265] Fix tests on Windows
[SSHD-249] Data race in AbstractSession.close() may lead to NPE and blocks during shutdown