[REM3-141] Race condition tests for cancellation of an opening connectio...

...n.

This fix is needed for upgrading the xnio version in wildfly-core.